| Modifier and Type | Method and Description |
|---|---|
MatrixValueI |
evaluate(MatrixNodeI node,
MatrixEvaluator visitor,
MatrixJep jep)
Returns the result of evaluating this node and the tree below.
|
MatrixValueI evaluate(MatrixNodeI node, MatrixEvaluator visitor, MatrixJep jep) throws ParseException
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;
node - The top node.visitor - The parser visitorjep - The current MatrixJep instance.ParseExceptionCopyright © 2018. All rights reserved.