com.singularsys.jep
Interface Evaluator

All Superinterfaces:
JepComponent, java.io.Serializable
All Known Implementing Classes:
FastEvaluator, PostfixEvaluator, RealEvaluator, StandardEvaluator

public interface Evaluator
extends JepComponent

Defines a method which can be used to evaluate a part of a node-tree. It is passed to classes which use CallbackEvaluatorI which need greater control over how they are evaluated.

Author:
Rich Morris Created on 22-Apr-2005
See Also:
CallbackEvaluationI

Method Summary
 java.lang.Object eval(Node node)
          Evaluates a sub expression.
 java.lang.Object evaluate(Node node)
          Evaluates a node and returns and object with the value of the node.
 
Methods inherited from interface com.singularsys.jep.JepComponent
getLightWeightInstance, init
 

Method Detail

evaluate

java.lang.Object evaluate(Node node)
                          throws EvaluationException
Evaluates a node and returns and object with the value of the node.

Throws:
EvaluationException - if errors occur during evaluation;

eval

java.lang.Object eval(Node node)
                      throws EvaluationException
Evaluates a sub expression.

Throws:
EvaluationException - if errors occur during evaluation;


Copyright © 2010 Singular Systems http://www.singularsys.com/jep