public class ExpressionParser extends Object
| Constructor and Description |
|---|
ExpressionParser(Parser parser,
Map<String,BinaryOperator> binaryOperators,
Map<String,UnaryOperator> unaryOperators)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ArgumentsNode |
parseArguments() |
ArgumentsNode |
parseArguments(boolean isMacroDefinition) |
Expression<?> |
parseExpression()
The public entry point for parsing an expression.
|
FilterInvocationExpression |
parseFilterInvocationExpression() |
String |
parseNewVariableName()
Parses a new variable that will need to be initialized in the Java code.
|
public ExpressionParser(Parser parser, Map<String,BinaryOperator> binaryOperators, Map<String,UnaryOperator> unaryOperators)
parser - A reference to the main parserbinaryOperators - All the binary operatorsunaryOperators - All the unary operatorspublic Expression<?> parseExpression() throws ParserException
ParserException - Thrown if a parsing error occurspublic FilterInvocationExpression parseFilterInvocationExpression() throws ParserException
ParserExceptionpublic ArgumentsNode parseArguments() throws ParserException
ParserExceptionpublic ArgumentsNode parseArguments(boolean isMacroDefinition) throws ParserException
ParserExceptionpublic String parseNewVariableName() throws ParserException
ParserException - Thrown if a parsing error occurs.Copyright © 2015. All rights reserved.