|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.lsmp.djep.matrixJep.MatrixPreprocessor
public class MatrixPreprocessor
This visitor does the majority of preprocessing work. Specifically it
Constructor Summary | |
---|---|
MatrixPreprocessor()
|
Method Summary | |
---|---|
MatrixNodeI |
preprocess(Node node,
MatrixJep mdjep)
Main entry point: pre-process a node. |
java.lang.Object |
visit(ASTConstant node,
java.lang.Object data)
constants |
java.lang.Object |
visit(ASTFunNode node,
java.lang.Object data)
visit functions and operators |
java.lang.Object |
visit(ASTStart node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTVarNode node,
java.lang.Object data)
multi-dimensional differentiable variables |
java.lang.Object |
visit(SimpleNode node,
java.lang.Object data)
|
MatrixNodeI[] |
visitChildrenAsArray(Node node,
java.lang.Object data)
Returns an array of matrix nodes which are the results of visiting each child. |
java.lang.Object |
visitOp(ASTFunNode node,
java.lang.Object data)
operators +,-,*,/ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatrixPreprocessor()
Method Detail |
---|
public MatrixNodeI preprocess(Node node, MatrixJep mdjep) throws ParseException
node
- Top node of tree.mdjep
- Reference to MatrixJep instance
ParseException
public MatrixNodeI[] visitChildrenAsArray(Node node, java.lang.Object data) throws ParseException
ParseException
public java.lang.Object visit(SimpleNode node, java.lang.Object data)
visit
in interface ParserVisitor
public java.lang.Object visit(ASTStart node, java.lang.Object data)
visit
in interface ParserVisitor
public java.lang.Object visit(ASTConstant node, java.lang.Object data) throws ParseException
visit
in interface ParserVisitor
ParseException
public java.lang.Object visit(ASTVarNode node, java.lang.Object data) throws ParseException
visit
in interface ParserVisitor
ParseException
public java.lang.Object visit(ASTFunNode node, java.lang.Object data) throws ParseException
visit
in interface ParserVisitor
ParseException
public java.lang.Object visitOp(ASTFunNode node, java.lang.Object data) throws ParseException
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |