
org.lsmp.djep.matrixJep.MatrixSpecialEvaluationI Maven / Gradle / Ivy
/* @author rich
* Created on 26-Nov-2003
*/
package org.lsmp.djep.matrixJep;
import org.nfunk.jep.*;
import org.lsmp.djep.matrixJep.nodeTypes.*;
import org.lsmp.djep.vectorJep.values.*;
/**
* If a function requires a special form of evaluation it should
* implement this interface.
*
* @author Rich Morris
* Created on 26-Nov-2003
*/
public interface MatrixSpecialEvaluationI {
/**
* Returns the result of evaluating this node and the tree below.
* This method has the responsibility for evaluating the children of the node
* and it should generally call
*
* MatrixValueI val = (MatrixValueI) node.jjtGetChild(i).jjtAccept(visitor,null);
*
* for each child.
*
*
* The final results should be copied into the mvalue field of the node using
*
* MatrixValueI mvalue = node.getMValue();
* mvalue.setEles(res);
* return mvalue;
*
*
* @param node The top node.
* @param visitor The parser visitor
* @param jep The current MatrixJep instance.
* @return Value after evaluation.
* @throws ParseException
*/
public MatrixValueI evaluate(MatrixNodeI node,MatrixEvaluator visitor,MatrixJep jep) throws ParseException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy