org.jfree.formula.operators

Class NotEqualOperator

Implemented Interfaces:
InfixOperator, Serializable

public class NotEqualOperator
extends java.lang.Object
implements InfixOperator

Creation-Date: 31.10.2006, 16:34:11
Author:
Thomas Morgner

Constructor Summary

NotEqualOperator()

Method Summary

TypeValuePair
evaluate(FormulaContext context, TypeValuePair value1, TypeValuePair value2)
int
getLevel()
boolean
isAssociative()
Defines, whether the operation is associative.
boolean
isLeftOperation()
Defines the bind-direction of the operator.
String
toString()

Constructor Details

NotEqualOperator

public NotEqualOperator()

Method Details

evaluate

public TypeValuePair evaluate(FormulaContext context,
                              TypeValuePair value1,
                              TypeValuePair value2)
            throws EvaluationException
Specified by:
evaluate in interface InfixOperator

getLevel

public int getLevel()
Specified by:
getLevel in interface InfixOperator

isAssociative

public boolean isAssociative()
Defines, whether the operation is associative. For associative operations, the evaluation order does not matter, if the operation appears more than once in an expression, and therefore we can optimize them a lot better than non-associative operations (ie. merge constant parts and precompute them once).
Specified by:
isAssociative in interface InfixOperator
Returns:
true, if the operation is associative, false otherwise

isLeftOperation

public boolean isLeftOperation()
Defines the bind-direction of the operator. That direction defines, in which direction a sequence of equal operators is resolved.
Specified by:
isLeftOperation in interface InfixOperator
Returns:
true, if the operation is left-binding, false if right-binding

toString

public String toString()