Package net.sf.jasperreports.engine.fill
Class JRAbstractExtendedIncrementer
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRAbstractExtendedIncrementer
-
- All Implemented Interfaces:
JRExtendedIncrementer,JRIncrementer
public abstract class JRAbstractExtendedIncrementer extends java.lang.Object implements JRExtendedIncrementer
Base class for extended incrementers.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description JRAbstractExtendedIncrementer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectcombine(JRCalculable calculable, JRCalculable calculableValue, AbstractValueProvider valueProvider)This implementation callsincrement(calculable, calculableValue.getValue(), valueProvider).booleanignoresNullValues()This implementation returnstrue.java.lang.Objectincrement(JRFillVariable variable, java.lang.Object expressionValue, AbstractValueProvider valueProvider)This implementation simply callsincrement(JRCalculable, Object, AbstractValueProvider).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.fill.JRExtendedIncrementer
increment, initialValue
-
-
-
-
Method Detail
-
increment
public java.lang.Object increment(JRFillVariable variable, java.lang.Object expressionValue, AbstractValueProvider valueProvider) throws JRException
This implementation simply callsincrement(JRCalculable, Object, AbstractValueProvider).- Specified by:
incrementin interfaceJRIncrementer- Throws:
JRException
-
combine
public java.lang.Object combine(JRCalculable calculable, JRCalculable calculableValue, AbstractValueProvider valueProvider) throws JRException
This implementation callsincrement(calculable, calculableValue.getValue(), valueProvider).- Specified by:
combinein interfaceJRExtendedIncrementer- Parameters:
calculable- the first calculated valuecalculableValue- the second calculated valuevalueProvider- the value provider used for the helper variables- Returns:
- the combined value
- Throws:
JRException
-
ignoresNullValues
public boolean ignoresNullValues()
This implementation returnstrue. Incrementer implementations can override this to specify thatnullvalues should not be ignored.- Specified by:
ignoresNullValuesin interfaceJRExtendedIncrementer- Returns:
- whether
nullvalues are ignored by this incrementer
-
-