public interface Evaluator
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(LinkedList<Object> queue)
Evaluates the given postfix token queue, returning the result.
|
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.
|
ExpressionParser |
getParser()
Gets the parser used when evaluating expressions.
|
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.
|
ExpressionParser getParser()
Object evaluate(String expression)
Object evaluate(LinkedList<Object> queue)
Object evaluate(SyntaxTree syntaxTree)
Object value(Object token)
Copyright © 2015–2016 SciJava. All rights reserved.