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(java.util.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.ParseExceptionpublic void run(java.util.Stack s)
throws ParseException
run in interface PostfixMathCommandIrun in class PostfixMathCommandParseException - if run.http://www.singularsys.com/jep Copyright © 2007 Singular Systems