public class RpEvaluator extends java.lang.Object implements Evaluator
RpEval
class directly.Constructor and Description |
---|
RpEvaluator(boolean updateJepVariables)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval(Node node)
Evaluates a sub expression.
|
java.lang.Object |
evaluate(Node node)
Main entry point, evaluates a node and returns and object with the value of the node.
|
JepComponent |
getLightWeightInstance()
Gets a light-weight instance suitable for using in multiple threads.
|
RpEval |
getRpe() |
void |
init(Jep jep)
Initialize the component.
|
void |
updateJepVariables() |
public RpEvaluator(boolean updateJepVariables)
updateJepVariables
- whether to update jep variable after each call to evaluatepublic java.lang.Object eval(Node node) throws EvaluationException
Evaluator
CallbackEvaluationI
eval
in interface Evaluator
node
- node to evaluateEvaluationException
- if errors occur during evaluation;public java.lang.Object evaluate(Node node) throws EvaluationException
Evaluator
evaluate
in interface Evaluator
node
- node to evaluateEvaluationException
- if errors occur during evaluation;public JepComponent getLightWeightInstance()
JepComponent
getLightWeightInstance
in interface JepComponent
public void init(Jep jep)
JepComponent
init
in interface JepComponent
jep
- the current Jep instancepublic RpEval getRpe()
public void updateJepVariables()
Copyright © 2018 Singular Systems http://www.singularsys.com/jep