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, setCurNumberOfParameters
public Eval()
public Node process(Node node, Node[] children, XJep xjep) throws ParseException
CommandVisitorI
process
in interface CommandVisitorI
node
- top node of the treechildren
- the children of the node after they have been preprocessed.xjep
- a reference to the current XJep interface.ParseException
public void run(java.util.Stack s) throws ParseException
run
in interface PostfixMathCommandI
run
in class PostfixMathCommand
ParseException
- if run.http://www.singularsys.com/jep Copyright © 2007 Singular Systems