public class Eval extends PostfixMathCommand implements CommandVisitorI
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
Eval()
Create a function that evaluates the lhs with values given on rhs.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
process(Node node,
Node[] children,
XJep xjep)
Performs the specified action on an expression tree.
|
void |
run(Stack s)
Should not be called by evaluator
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameterspublic Eval()
public Node process(Node node, Node[] children, XJep xjep) throws ParseException
CommandVisitorIprocess in interface CommandVisitorInode - top node of the treechildren - the children of the node after they have been preprocessed.xjep - a reference to the current XJep interface.ParseException - exceptionpublic void run(Stack s) throws ParseException
run in interface PostfixMathCommandIrun in class PostfixMathCommandParseException - if run.Copyright © 2018. All rights reserved.