public class ExpressionParser extends Object implements Parser<Expression>
Modifier and Type | Method and Description |
---|---|
static Parser<Expression> |
newInstance()
Creates and returns new instance of the
ExpressionParser class. |
Expression |
parse(String input)
Parses the SemVer Expressions.
|
public static Parser<Expression> newInstance()
ExpressionParser
class.
This method implements the Static Factory Method pattern.ExpressionParser
classpublic Expression parse(String input)
parse
in interface Parser<Expression>
input
- a string representing the SemVer ExpressionLexerException
- when encounters an illegal characterUnexpectedTokenException
- when consumes a token of an unexpected typeCopyright © 2017. All rights reserved.