|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.singularsys.jep.standard.StandardEvaluator
public class StandardEvaluator
Constructor Summary | |
---|---|
StandardEvaluator()
|
Method Summary | |
---|---|
java.lang.Object |
eval(Node node)
Evaluates a sub expression. |
java.lang.Object |
evaluate(Node node)
Evaluates a node and returns and object with the value of the node. |
void |
init(Jep jep)
Initialize the component. |
boolean |
isTrapNullValues()
Whether null values for variables are trapped. |
void |
setTrapNullValues(boolean trapNullValues)
Sets whether null values for variables are trapped. |
java.lang.Object |
visit(ASTConstant node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTFunNode node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTOpNode node,
java.lang.Object data)
|
java.lang.Object |
visit(ASTVarNode node,
java.lang.Object data)
|
protected void |
visitFun(ASTFunNode node)
Visits a function/operator node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardEvaluator()
Method Detail |
---|
public void init(Jep jep)
JepComponent
init
in interface JepComponent
jep
- the current Jep instancepublic java.lang.Object eval(Node node) throws EvaluationException
Evaluator
eval
in interface Evaluator
EvaluationException
public java.lang.Object evaluate(Node node) throws EvaluationException
Evaluator
evaluate
in interface Evaluator
EvaluationException
public java.lang.Object visit(ASTConstant node, java.lang.Object data) throws EvaluationException
visit
in interface ParserVisitor
EvaluationException
public java.lang.Object visit(ASTFunNode node, java.lang.Object data) throws EvaluationException
visit
in interface ParserVisitor
EvaluationException
public java.lang.Object visit(ASTVarNode node, java.lang.Object data) throws EvaluationException
visit
in interface ParserVisitor
EvaluationException
public java.lang.Object visit(ASTOpNode node, java.lang.Object data) throws EvaluationException
visit
in interface ParserVisitor
EvaluationException
protected void visitFun(ASTFunNode node) throws EvaluationException
node
-
EvaluationException
public boolean isTrapNullValues()
public void setTrapNullValues(boolean trapNullValues)
trapNullValues
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |