public interface StackEvaluator extends Evaluator
| Modifier and Type | Method and Description |
|---|---|
default Object |
evaluate(LinkedList<Object> queue)
Evaluates a postfix token queue.
|
default Object |
evaluate(String expression)
Evaluates an infix expression.
|
default Object |
evaluate(SyntaxTree syntaxTree)
Evaluates a syntax tree.
|
Object |
execute(Operator op,
Deque<Object> stack)
Executes an
operation with the specified value stack. |
Object execute(Operator op, Deque<Object> stack)
operation with the specified value stack.op - The operator to execute.stack - The value stack containing the arguments to pass.default Object evaluate(String expression)
Evaluatordefault Object evaluate(SyntaxTree syntaxTree)
EvaluatorCopyright © 2015–2021 SciJava. All rights reserved.