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 booleanisForce()Whether to force re-evaluation of sub-equations.voidsetForce(boolean force)Whether to force re-evaluation of sub-equations.java.lang.ObjectvisitVar(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 theforceparameter is true will always use the equation. Ifforceis 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 theforceparameter is true will always use the equation. Ifforceis false then it only uses the equation is the variable does not have a valid value.- Overrides:
visitVarin classFastEvaluator- Throws:
EvaluationException
-
-