Class CrosstabProcessorFunction
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.function.AbstractExpression
-
- org.pentaho.reporting.engine.classic.core.function.AbstractFunction
-
- org.pentaho.reporting.engine.classic.core.states.crosstab.CrosstabProcessorFunction
-
- All Implemented Interfaces:
Serializable
,Cloneable
,EventListener
,ReportListener
,Expression
,Function
,StructureFunction
public class CrosstabProcessorFunction extends AbstractFunction implements StructureFunction
Computes the column-axis values for all crosstabs in the current report.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CrosstabProcessorFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Clones the expression.int
getDependencyLevel()
Returns the dependency level for the expression (controls evaluation order for expressions and functions).Expression
getInstance()
Return a completly separated copy of this function.int
getProcessingPriority()
Object
getValue()
Return the current expression value.void
groupFinished(ReportEvent event)
Receives notification that a group has finished.void
groupStarted(ReportEvent event)
Receives notification that a group has started.void
itemsAdvanced(ReportEvent event)
Receives notification that a row of data is being processed.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractFunction
itemsFinished, itemsStarted, reportDone, reportFinished, reportInitialized, reportStarted, summaryRowSelection
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression
getDataRow, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.engine.classic.core.function.Expression
getDataRow, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setDependencyLevel, setName, setRuntime
-
Methods inherited from interface org.pentaho.reporting.engine.classic.core.event.ReportListener
itemsFinished, itemsStarted, reportDone, reportFinished, reportInitialized, reportStarted, summaryRowSelection
-
-
-
-
Method Detail
-
getProcessingPriority
public int getProcessingPriority()
- Specified by:
getProcessingPriority
in interfaceStructureFunction
-
groupStarted
public void groupStarted(ReportEvent event)
Receives notification that a group has started.- Specified by:
groupStarted
in interfaceReportListener
- Overrides:
groupStarted
in classAbstractFunction
- Parameters:
event
- the event.
-
groupFinished
public void groupFinished(ReportEvent event)
Receives notification that a group has finished.- Specified by:
groupFinished
in interfaceReportListener
- Overrides:
groupFinished
in classAbstractFunction
- Parameters:
event
- the event.
-
itemsAdvanced
public void itemsAdvanced(ReportEvent event)
Receives notification that a row of data is being processed.- Specified by:
itemsAdvanced
in interfaceReportListener
- Overrides:
itemsAdvanced
in classAbstractFunction
- Parameters:
event
- the event.
-
getValue
public Object getValue()
Return the current expression value. The value depends (obviously) on the expression implementation.- Specified by:
getValue
in interfaceExpression
- Returns:
- the value of the function.
-
getDependencyLevel
public int getDependencyLevel()
Returns the dependency level for the expression (controls evaluation order for expressions and functions).- Specified by:
getDependencyLevel
in interfaceExpression
- Overrides:
getDependencyLevel
in classAbstractExpression
- Returns:
- the level.
-
clone
public Object clone() throws CloneNotSupportedException
Clones the expression. The expression should be reinitialized after the cloning.Expressions maintain no state, cloning is done at the beginning of the report processing to disconnect the expression from any other object space.
- Specified by:
clone
in interfaceExpression
- Overrides:
clone
in classAbstractExpression
- Returns:
- a clone of this expression.
- Throws:
CloneNotSupportedException
- this should never happen.
-
getInstance
public Expression getInstance()
Return a completly separated copy of this function. The copy does no longer share any changeable objects with the original function.- Specified by:
getInstance
in interfaceExpression
- Overrides:
getInstance
in classAbstractExpression
- Returns:
- a copy of this function.
-
-