|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scijava.sjep.eval.AbstractEvaluator
public abstract class AbstractEvaluator
Base class for Evaluator implementations.
| Constructor Summary | |
|---|---|
AbstractEvaluator()
|
|
AbstractEvaluator(ExpressionParser parser)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.scijava.sjep.eval.Evaluator |
|---|
evaluate |
| Constructor Detail |
|---|
public AbstractEvaluator()
public AbstractEvaluator(ExpressionParser parser)
| Method Detail |
|---|
public Object evaluate(SyntaxTree syntaxTree)
Evaluator
evaluate in interface Evaluatorpublic Object evaluate(String expression)
Evaluator
evaluate in interface Evaluatorpublic Object value(Object token)
Evaluator
value in interface Evaluatorpublic Object get(Variable v)
Evaluator
get in interface Evaluator
public void set(Variable v,
Object value)
Evaluator
set in interface Evaluatorpublic void setAll(Map<? extends String,? extends Object> map)
Evaluator
setAll in interface Evaluator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||