Package com.singularsys.jep
Interface Evaluator
- All Superinterfaces:
JepComponent,Serializable
- All Known Implementing Classes:
FastEvaluator,FastEvaluator3_4,FastEvaluator3_5,PostfixEvaluator,RealEvaluator,StackCheckingFastEvaluator,StandardEvaluator,ThreadSafeEvaluator,UncheckedEvaluator
Defines a method which can be used to evaluate a part of a node-tree.
It is passed to classes that use CallbackEvaluatorI
which need greater control over how they are evaluated.
- Author:
- Rich Morris Created on 22-Apr-2005
- See Also:
-
Method Summary
Methods inherited from interface com.singularsys.jep.JepComponent
getLightWeightInstance, init
-
Method Details
-
evaluate
Main entry point, evaluates a node and returns and object with the value of the node.- Parameters:
node- node to evaluate- Returns:
- value after evaluation
- Throws:
EvaluationException- if errors occur during evaluation;
-
eval
Evaluates a sub expression. This method can be called by PostfixMathCommands which implementCallbackEvaluationI- Parameters:
node- node to evaluate- Returns:
- The value after evaluating the sub expression.
- Throws:
EvaluationException- if errors occur during evaluation;
-