public abstract class AbstractEvaluator extends Object implements Evaluator
Evaluator implementations.| Constructor and Description |
|---|
AbstractEvaluator() |
AbstractEvaluator(ExpressionParser parser) |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(String expression)
Evaluates the given infix expression, returning the result.
|
Object |
evaluate(SyntaxTree syntaxTree)
Evaluates the given syntax tree, returning the result.
|
Object |
get(Variable v)
Gets the value of the given variable.
|
void |
set(Variable v,
Object value)
Sets the value of the given variable.
|
void |
setAll(Map<? extends String,? extends Object> map)
Assigns variables en masse.
|
Object |
value(Object token)
Gets the value of the given token.
|
public AbstractEvaluator()
public AbstractEvaluator(ExpressionParser parser)
public Object evaluate(SyntaxTree syntaxTree)
Evaluatorpublic Object evaluate(String expression)
Evaluatorpublic Object value(Object token)
Evaluatorpublic Object get(Variable v)
Evaluatorpublic void set(Variable v, Object value)
EvaluatorCopyright © 2015–2016 SciJava. All rights reserved.