|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Evaluator
Interface for expression evaluators.
| Method Summary | |
|---|---|
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. |
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. |
| Method Detail |
|---|
Object evaluate(String expression)
Object evaluate(LinkedList<Object> queue)
Object evaluate(SyntaxTree syntaxTree)
Object value(Object token)
Object get(Variable v)
void set(Variable v,
Object value)
void setAll(Map<? extends String,? extends Object> map)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||