public class MatrixPreprocessor extends Object implements ParserVisitor
Constructor and Description |
---|
MatrixPreprocessor() |
Modifier and Type | Method and Description |
---|---|
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 +,-,*,/
|
public MatrixNodeI preprocess(Node node, MatrixJep mdjep) throws ParseException
node
- Top node of tree.mdjep
- Reference to MatrixJep instanceParseException
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 ParserVisitor
ParseException
public Object visit(ASTVarNode node, Object data) throws ParseException
visit
in interface ParserVisitor
ParseException
public Object visit(ASTFunNode node, Object data) throws ParseException
visit
in interface ParserVisitor
ParseException
public Object visitOp(ASTFunNode node, Object data) throws ParseException
ParseException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics