org.lsmp.djep.matrixJep
Interface MatrixSpecialEvaluationI

All Known Implementing Classes:
MAssign, MIf

public interface MatrixSpecialEvaluationI

If a function requires a special form of evaluation it should implement this interface.

Author:
Rich Morris Created on 26-Nov-2003

Method Summary
 MatrixValueI evaluate(MatrixNodeI node, MatrixEvaluator visitor, MatrixJep jep)
          Returns the result of evaluating this node and the tree below.
 

Method Detail

evaluate

public MatrixValueI evaluate(MatrixNodeI node,
                             MatrixEvaluator visitor,
                             MatrixJep jep)
                      throws ParseException
Returns the result of evaluating this node and the tree below. This method has the responsability for evaluating the children of the node and it should generally call
 		MatrixValueI res = (MatrixValueI) node.jjtGetChild(i).jjtAccept(visitor,null);	
 
for each child.

Parameters:
node - The top node.
visitor - The parser visitor
jep - The current MatrixJep instance.
Returns:
Value after evaluation.
Throws:
ParseException


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