Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.formula.operators.AbstractNumericOperator
org.jfree.formula.operators.AddOperator
public class AddOperator
extends AbstractNumericOperator
Field Summary |
Fields inherited from class org.jfree.formula.operators.AbstractNumericOperator | |
ZERO |
Constructor Summary | |
Method Summary | |
Number |
|
int |
|
boolean |
|
boolean | |
String |
|
Methods inherited from class org.jfree.formula.operators.AbstractNumericOperator | |
evaluate , evaluate |
public Number evaluate(Number number1, Number number2)
- Overrides:
- evaluate in interface AbstractNumericOperator
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
public boolean isLeftOperation()
- Specified by:
- isLeftOperation in interface InfixOperator