org.jfree.formula.operators

Class LesserEqualOperator

Implemented Interfaces:
InfixOperator, Serializable

public class LesserEqualOperator
extends AbstractCompareOperator

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

Constructor Summary

LesserEqualOperator()

Method Summary

protected boolean
evaluate(int compareResult)
int
getLevel()
boolean
isAssociative()
Defines, whether the operation is associative.
boolean
isLeftOperation()
String
toString()

Methods inherited from class org.jfree.formula.operators.AbstractCompareOperator

evaluate, evaluate

Constructor Details

LesserEqualOperator

public LesserEqualOperator()

Method Details

evaluate

protected boolean evaluate(int compareResult)
Overrides:
evaluate in interface AbstractCompareOperator

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()
Specified by:
isLeftOperation in interface InfixOperator

toString

public String toString()