ASTNode |
Expression.createExpressionNode(java.lang.String expression) |
Create an AST representation for an expression string.
|
EvaluationValue |
Expression.evaluate() |
Evaluates the expression by parsing it (if not done before) and the evaluating it.
|
ASTNode |
Expression.getAbstractSyntaxTree() |
Returns the root ode of the parsed abstract syntax tree.
|
java.util.List<ASTNode> |
Expression.getAllASTNodes() |
Returns the list of all nodes of the abstract syntax tree.
|
java.util.Set<java.lang.String> |
Expression.getUndefinedVariables() |
Returns all variables that are used in the expression, but have no value assigned.
|
java.util.Set<java.lang.String> |
Expression.getUsedVariables() |
Returns all variables that are used i the expression, excluding the constants like e.g.
|
void |
Expression.validate() |
Validates the expression by parsing it and throwing an exception, if the parser fails.
|