org.nfunk.jep.function
Interface SpecialEvaluationI

All Known Implementing Classes:
Assign, Diff, If, SumType

public interface SpecialEvaluationI

Functions which require greater control over their evaluation should implement this interface.

Author:
Rich Morris Created on 18-Nov-2003

Method Summary
 java.lang.Object evaluate(Node node, java.lang.Object data, ParserVisitor pv, java.util.Stack stack)
          Performs some special evaluation on the node.
 

Method Detail

evaluate

public java.lang.Object evaluate(Node node,
                                 java.lang.Object data,
                                 ParserVisitor pv,
                                 java.util.Stack stack)
                          throws ParseException
Performs some special evaluation on the node. This method has the responsability for evaluating the children of the node and it should generally call
 node.jjtGetChild(i).jjtAccept(pv,data);	
 
for each child.

Parameters:
node - The current node
data - The data passed to visitor, typically not used
pv - The visitor, can be used evaluate the children
stack - The stack of the evaluator
Returns:
the value after evaluation
Throws:
ParseException


http://www.singularsys.com/jep Copyright © 2004 Singular Systems