public class ExpressionParser extends java.lang.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(java.lang.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(java.lang.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 type