Class ExpressionParser
java.lang.Object
com.randomnoun.common.jexl.parser.ExpressionParser
- All Implemented Interfaces:
ExpressionParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface com.randomnoun.common.jexl.parser.ExpressionParserConstants
CHARACTER_LITERAL, DECIMAL_LITERAL, DEFAULT, DIGIT, EOF, FALSE, FLOATING_POINT_LITERAL, HEX_LITERAL, IDENTIFIER, INTEGER_LITERAL, LETTER, NULL, OCTAL_LITERAL, STRING_LITERAL, tokenImage, TRUE -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with generated Token Manager.ExpressionParser(InputStream stream) Constructor with InputStream.ExpressionParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingExpressionParser(Reader stream) Constructor.ExpressionParser(String fileName) -
Method Summary
Modifier and TypeMethodDescriptionfinal AdditiveExpressionfinal ArgumentListfinal Argumentsfinal BooleanLiteralfinal ConditionalAndExpressionfinal voidDisable tracing.final voidEnable tracing.final EqualityExpressionfinal Expressionfinal FunctionCallGenerate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final LiteralLiteral()static voidfinal MultiplicativeExpressionfinal NameName()final NullLiteralfinal PrimaryExpressionvoidReinitialise.voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.final RelationalExpressionfinal TopLevelExpressionfinal UnaryExpression
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
ExpressionParser
-
ExpressionParser
Constructor with InputStream. -
ExpressionParser
Constructor with InputStream and supplied encoding -
ExpressionParser
Constructor. -
ExpressionParser
Constructor with generated Token Manager.
-
-
Method Details
-
main
-
TopLevelExpression
- Throws:
ParseException
-
Expression
- Throws:
ParseException
-
ConditionalAndExpression
- Throws:
ParseException
-
EqualityExpression
- Throws:
ParseException
-
RelationalExpression
- Throws:
ParseException
-
AdditiveExpression
- Throws:
ParseException
-
MultiplicativeExpression
- Throws:
ParseException
-
UnaryExpression
- Throws:
ParseException
-
PrimaryExpression
- Throws:
ParseException
-
Name
- Throws:
ParseException
-
FunctionCall
- Throws:
ParseException
-
Arguments
- Throws:
ParseException
-
ArgumentList
- Throws:
ParseException
-
Literal
- Throws:
ParseException
-
BooleanLiteral
- Throws:
ParseException
-
NullLiteral
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
Enable tracing. -
disable_tracing
Disable tracing.
-