org.pentaho.reporting.libraries.formula.operators
public abstract class AbstractNumericOperator extends java.lang.Object implements InfixOperator
Modifier and Type | Field and Description |
---|---|
protected static java.lang.Number |
ZERO |
Modifier | Constructor and Description |
---|---|
protected |
AbstractNumericOperator() |
Modifier and Type | Method and Description |
---|---|
TypeValuePair |
evaluate(FormulaContext context,
TypeValuePair value1,
TypeValuePair value2)
Evaluates the comptuation for both parameters.
|
protected abstract java.lang.Number |
evaluate(java.lang.Number number1,
java.lang.Number number2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLevel, isAssociative, isLeftOperation
public final TypeValuePair evaluate(FormulaContext context, TypeValuePair value1, TypeValuePair value2) throws EvaluationException
InfixOperator
evaluate
in interface InfixOperator
EvaluationException
protected abstract java.lang.Number evaluate(java.lang.Number number1, java.lang.Number number2) throws EvaluationException
EvaluationException