|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
Object |
visit(ASTConstant node,
Object data)
constants |
Object |
visit(ASTFunNode node,
Object data)
visit functions and operators |
Object |
visit(ASTStart node,
Object data)
|
Object |
visit(ASTVarNode node,
Object data)
multi-dimensional differentiable variables |
Object |
visit(SimpleNode node,
Object data)
|
MatrixNodeI[] |
visitChildrenAsArray(Node node,
Object data)
Returns an array of matrix nodes which are the results of visiting each child. |
Object |
visitOp(ASTFunNode node,
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,
Object data)
throws ParseException
ParseException
public Object visit(SimpleNode node,
Object data)
visit in interface ParserVisitor
public Object visit(ASTStart node,
Object data)
visit in interface ParserVisitor
public Object visit(ASTConstant node,
Object data)
throws ParseException
visit in interface ParserVisitorParseException
public Object visit(ASTVarNode node,
Object data)
throws ParseException
visit in interface ParserVisitorParseException
public Object visit(ASTFunNode node,
Object data)
throws ParseException
visit in interface ParserVisitorParseException
public Object visitOp(ASTFunNode node,
Object data)
throws ParseException
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||