org.jfree.formula.operators

Class NotEqualOperator

public class NotEqualOperator extends Object implements InfixOperator

Creation-Date: 31.10.2006, 16:34:11

Author: Thomas Morgner

Constructor Summary
NotEqualOperator()
Method Summary
TypeValuePairevaluate(FormulaContext context, TypeValuePair value1, TypeValuePair value2)
intgetLevel()
booleanisAssociative()
Defines, whether the operation is associative.
booleanisLeftOperation()
Defines the bind-direction of the operator.
StringtoString()

Constructor Detail

NotEqualOperator

public NotEqualOperator()

Method Detail

evaluate

public TypeValuePair evaluate(FormulaContext context, TypeValuePair value1, TypeValuePair value2)

getLevel

public int getLevel()

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).

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.

Returns: true, if the operation is left-binding, false if right-binding

toString

public String toString()