Class ExpressionTokenizer
java.lang.Object
com.aquima.interactions.rule.impl.ExpressionTokenizer
Class for easy exposure of the internal structure of a parsed expression.
See AQU-4596.
- Since:
- 7.2
- Author:
- Jon van Leuven
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetParseTree
(String expression) This method parses an expression and returns the parse tree.getTslParseTree
(String text) This method parses a tsl and returns the parse tree.
-
Constructor Details
-
ExpressionTokenizer
public ExpressionTokenizer() -
ExpressionTokenizer
-
-
Method Details
-
getParseTree
This method parses an expression and returns the parse tree.- Parameters:
expression
- The expression to parse.- Returns:
- The parse tree.
- Throws:
ParseException
- Is thrown when the expression failed parsing.
-
getTslParseTree
This method parses a tsl and returns the parse tree.- Parameters:
text
- The tsl to parse.- Returns:
- The parse tree.
- Throws:
ParseException
- Is thrown when the expression failed parsing.
-