public class ExpressionEval
extends java.lang.Object
Constructor and Description |
---|
ExpressionEval() |
Modifier and Type | Method and Description |
---|---|
Value |
eval(java.lang.String expression,
java.lang.String currentScope)
Used to evaluate an expression
|
java.util.Map<java.lang.String,Value> |
getVariables()
Used to get the variables which can be used by expressions.
|
public java.util.Map<java.lang.String,Value> getVariables()
public Value eval(java.lang.String expression, java.lang.String currentScope) throws ExpressionParserException
expression
- The expressioncurrentScope
- the scope of the variables to eval. Usually the calling addon nameExpressionParserException
- Thrown if their are any problems