public class MatrixEvaluator extends Object implements ParserVisitor, EvaluatorI
Constructor and Description |
---|
MatrixEvaluator() |
Modifier and Type | Method and Description |
---|---|
Object |
eval(Node node)
Evaluates a node and returns and object with the value of the node.
|
MatrixValueI |
evaluate(MatrixNodeI node,
MatrixJep mj) |
Object |
visit(ASTConstant node,
Object data)
constants
|
Object |
visit(ASTFunNode node,
Object data)
other functions
|
Object |
visit(ASTStart node,
Object data) |
Object |
visit(ASTVarNode node,
Object data)
multi dimensional differentiable variables
|
Object |
visit(SimpleNode node,
Object data) |
public MatrixValueI evaluate(MatrixNodeI node, MatrixJep mj) throws ParseException
ParseException
public Object eval(Node node) throws ParseException
EvaluatorI
eval
in interface EvaluatorI
ParseException
- if errors occur during evaluation;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)
visit
in interface ParserVisitor
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
Jas4pp 1.5 © Java Analysis Studio for Particle Physics