public class XEvaluatorVisitor extends EvaluatorVisitor implements Serializable
Function nodes are evaluated by first evaluating all the children nodes, then applying the function class associated with the node. Variable and constant nodes are evaluated by pushing their value onto the stack.
Some changes implemented by rjm. Nov 03. Added hook to SpecialEvaluationI. Clears stack before evaluation. Simplifies error handling by making visit methods throw ParseException. Changed visit(ASTVarNode node) so messages not calculated every time.
Constructor and Description |
---|
XEvaluatorVisitor() |
Modifier and Type | Method and Description |
---|---|
Object |
visit(ASTVarNode node,
Object data)
Visit a variable node.
|
eval, eval, getValue, isTrapNullValues, setTrapNullValues, visit, visit, visit, visit
public Object visit(ASTVarNode node, Object data) throws ParseException
visit
in interface ParserVisitor
visit
in class EvaluatorVisitor
ParseException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics