com.infoviz.util
Interface Evaluator


public interface Evaluator

An interface for Evaluation of an Expressions.

$Id$ $Revision$ $Author$


Method Summary
 java.lang.Object evaluate(java.lang.Object leftOperand, java.lang.String operator, java.lang.Object rightOperand)
          evaluate an expression.
 

Method Detail

evaluate

public java.lang.Object evaluate(java.lang.Object leftOperand,
                                 java.lang.String operator,
                                 java.lang.Object rightOperand)
                          throws EvaluationException
evaluate an expression.

Parameters:
leftOperand - the left operand
operator - the operator. logical operators: and, or, not. relational operators: >, <, >=. <= and =.
rightOperand -
Returns:
an Object containing the result, implementors should provide the details of the object
Throws:
EvaluationException - if there is a problem during the evaluation of the expression