Package com.singularsys.extensions.xjep
Class XEvaluator
- java.lang.Object
-
- com.singularsys.jep.standard.FastEvaluator
-
- com.singularsys.extensions.xjep.XEvaluator
-
- All Implemented Interfaces:
Evaluator
,JepComponent
,ParserVisitor
,java.io.Serializable
public class XEvaluator extends FastEvaluator
Evaluator which uses equations of variables.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.jep.standard.FastEvaluator
trapInfinity, trapNaN, trapNullValues, trapUnsetValues
-
-
Constructor Summary
Constructors Constructor Description XEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isForce()
Whether to force re-evaluation of sub-equations.void
setForce(boolean force)
Whether to force re-evaluation of sub-equations.java.lang.Object
visitVar(Node node)
Evaluates a variable, it will calculate the value using variables equation if necessary.-
Methods inherited from class com.singularsys.jep.standard.FastEvaluator
eval, evaluate, getLightWeightInstance, init, isTrapInfinity, isTrapNaN, isTrapNullValues, isTrapUnsetValues, nodeAccept, setTrapInfinity, setTrapNaN, setTrapNullValues, setTrapUnsetValues, visit, visit, visit, visit, visitConstant, visitFun
-
-
-
-
Method Detail
-
isForce
public boolean isForce()
Whether to force re-evaluation of sub-equations.
-
setForce
public void setForce(boolean force)
Whether to force re-evaluation of sub-equations. If theforce
parameter is true will always use the equation. Ifforce
is false then it only uses the equation is the variable does not have a valid value.
-
visitVar
public java.lang.Object visitVar(Node node) throws EvaluationException
Evaluates a variable, it will calculate the value using variables equation if necessary. If theforce
parameter is true will always use the equation. Ifforce
is false then it only uses the equation is the variable does not have a valid value.- Overrides:
visitVar
in classFastEvaluator
- Throws:
EvaluationException
-
-