org.pentaho.reporting.libraries.formula.operators
Class AbstractCompareOperator

java.lang.Object
  extended by org.pentaho.reporting.libraries.formula.operators.AbstractCompareOperator
All Implemented Interfaces:
java.io.Serializable, InfixOperator
Direct Known Subclasses:
GreaterEqualOperator, GreaterOperator, LesserEqualOperator, LesserOperator

public abstract class AbstractCompareOperator
extends java.lang.Object
implements InfixOperator

Creation-Date: 06.06.2007, 18:52:25

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
protected AbstractCompareOperator()
           
 
Method Summary
 TypeValuePair evaluate(FormulaContext context, TypeValuePair value1, TypeValuePair value2)
          Evaluates the comptuation for both parameters.
protected abstract  boolean evaluate(int compareResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.reporting.libraries.formula.operators.InfixOperator
getLevel, isAssociative, isLeftOperation
 

Constructor Detail

AbstractCompareOperator

protected AbstractCompareOperator()
Method Detail

evaluate

public final TypeValuePair evaluate(FormulaContext context,
                                    TypeValuePair value1,
                                    TypeValuePair value2)
                             throws EvaluationException
Description copied from interface: InfixOperator
Evaluates the comptuation for both parameters. This method must never return null.

Specified by:
evaluate in interface InfixOperator
Returns:
Throws:
EvaluationException

evaluate

protected abstract boolean evaluate(int compareResult)