public class Eval extends PostfixMathCommand implements CommandVisitorI, Serializable
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, 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(Stack s) throws ParseException
run
in interface PostfixMathCommandI
run
in class PostfixMathCommand
ParseException
- if run.Jas4pp 1.5 © Java Analysis Studio for Particle Physics