public class ThreadSafeEvaluator extends FastEvaluator
Modifier and Type | Field and Description |
---|---|
protected Jep |
jep |
protected VariableTable |
vt |
trapInfinity, trapNaN, trapNullValues, trapUnsetValues
Constructor and Description |
---|
ThreadSafeEvaluator() |
Modifier and Type | Method and Description |
---|---|
JepComponent |
getLightWeightInstance()
Gets a light-weight instance suitable for using in multiple threads.
|
Variable |
getVariable(java.lang.String name) |
void |
init(Jep jep1)
Initialize the component.
|
java.lang.Object |
visitVar(Node node) |
eval, evaluate, isTrapInfinity, isTrapNaN, isTrapNullValues, isTrapUnsetValues, nodeAccept, setTrapInfinity, setTrapNaN, setTrapNullValues, setTrapUnsetValues, visit, visit, visit, visit, visitConstant, visitFun
protected Jep jep
protected VariableTable vt
public void init(Jep jep1)
JepComponent
init
in interface JepComponent
init
in class FastEvaluator
jep1
- the current Jep instancepublic JepComponent getLightWeightInstance()
JepComponent
getLightWeightInstance
in interface JepComponent
getLightWeightInstance
in class FastEvaluator
public Variable getVariable(java.lang.String name)
public java.lang.Object visitVar(Node node) throws EvaluationException
visitVar
in class FastEvaluator
EvaluationException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep