Interface IExpressionParser
-
public interface IExpressionParserA parser that produces an expression tree based on a string representation. An implementation will use theIExpressionFactoryto create the actual expressions- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IExpressionparse(String exprString)Create a new expression.IExpressionparseQuery(String exprString)Create an arbitrary expression.
-
-
-
Method Detail
-
parse
IExpression parse(String exprString)
Create a new expression. The expression will have access to the global variable 'this' and to the context parameters.- Parameters:
exprString- The string representing the boolean expression.- Returns:
- The resulting expression tree.
- Throws:
ExpressionParseException- If an error occurred during parsing.
-
parseQuery
IExpression parseQuery(String exprString)
Create an arbitrary expression. The expression will have access to the global variable 'everything' and to the context parameters.- Parameters:
exprString- The string representing the boolean expression.- Returns:
- The resulting expression tree.
- Throws:
ExpressionParseException- If an error occurred during parsing.
-
-