public class ExpressionEvaluator
extends java.lang.Object
Expression.| Constructor and Description |
|---|
ExpressionEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
protected Value |
applyFunction(int function,
Value[] arguments)
Applies the given function to the given arguments.
|
Value |
evaluate(com.microej.script.ast.expressions.Expression expression)
Evaluates the given expression.
|
protected Value |
getValueForTag(int tag)
Returns the value of the given tag.
|
public Value evaluate(com.microej.script.ast.expressions.Expression expression) throws ExpressionEvaluationException
expression - the expression to evaluate.ExpressionEvaluationException - if the expression could not be evaluated.protected Value getValueForTag(int tag) throws ExpressionEvaluationException
This method simply throws an ExpressionEvaluationException by default but it can be overridden.
tag - the tag to get the value of.ExpressionEvaluationException - if the tag could not be evaluated.protected Value applyFunction(int function, Value[] arguments) throws ExpressionEvaluationException
This method simply throws an ExpressionEvaluationException by default but it can be overridden.
function - the function to apply.arguments - the arguments to apply the given function to.ExpressionEvaluationException - if the function could not be applied.