Class GenericExpressionRuntime
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.function.GenericExpressionRuntime
-
- All Implemented Interfaces:
ExpressionRuntime
public class GenericExpressionRuntime extends Object implements ExpressionRuntime
-
-
Constructor Summary
Constructors Constructor Description GenericExpressionRuntime()
GenericExpressionRuntime(TableModel data, int currentRow, ProcessingContext processingContext)
GenericExpressionRuntime(DataRow dataRow, TableModel data, int currentRow, ProcessingContext processingContext)
GenericExpressionRuntime(ExpressionRuntime runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pentaho.reporting.libraries.base.config.Configuration
getConfiguration()
Returns the report configuration that was used to initiate this processing run.int
getCurrentDataItem()
Returns the row number of the raw datasource that is currently accessed.int
getCurrentGroup()
int
getCurrentRow()
Where are we in the current processing.TableModel
getData()
Access to the tablemodel was granted using report properties, now direct.DataFactory
getDataFactory()
DataRow
getDataRow()
Returns the current data-row.DataSchema
getDataSchema()
String
getExportDescriptor()
The output descriptor is a simple string collections consisting of the following components: exportclass/type/subtypeint
getGroupStartRow(int groupIndex)
int
getGroupStartRow(String groupName)
ProcessingContext
getProcessingContext()
Returns the current processing context.ResourceBundleFactory
getResourceBundleFactory()
Returns the resource-bundle factory of current processing context.boolean
isCrosstabActive()
A flag indicating that a crosstab is actively processed.boolean
isStructuralComplexReport()
A flag indicating that this report contains crosstabs.
-
-
-
Constructor Detail
-
GenericExpressionRuntime
public GenericExpressionRuntime()
-
GenericExpressionRuntime
public GenericExpressionRuntime(TableModel data, int currentRow, ProcessingContext processingContext)
-
GenericExpressionRuntime
public GenericExpressionRuntime(DataRow dataRow, TableModel data, int currentRow, ProcessingContext processingContext)
-
GenericExpressionRuntime
public GenericExpressionRuntime(ExpressionRuntime runtime)
-
-
Method Detail
-
getDataFactory
public DataFactory getDataFactory()
- Specified by:
getDataFactory
in interfaceExpressionRuntime
-
getDataSchema
public DataSchema getDataSchema()
- Specified by:
getDataSchema
in interfaceExpressionRuntime
-
getDataRow
public DataRow getDataRow()
Description copied from interface:ExpressionRuntime
Returns the current data-row. The datarow can be used to access the computed values of all expressions and functions and the current row in the tablemodel.- Specified by:
getDataRow
in interfaceExpressionRuntime
- Returns:
- the data-row.
-
getConfiguration
public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
Description copied from interface:ExpressionRuntime
Returns the report configuration that was used to initiate this processing run.- Specified by:
getConfiguration
in interfaceExpressionRuntime
- Returns:
- the report configuration.
-
getResourceBundleFactory
public ResourceBundleFactory getResourceBundleFactory()
Description copied from interface:ExpressionRuntime
Returns the resource-bundle factory of current processing context.- Specified by:
getResourceBundleFactory
in interfaceExpressionRuntime
- Returns:
- the current resource-bundle factory.
-
getData
public TableModel getData()
Access to the tablemodel was granted using report properties, now direct.- Specified by:
getData
in interfaceExpressionRuntime
- Returns:
- the current tablemodel used in the report.
-
getCurrentRow
public int getCurrentRow()
Where are we in the current processing.- Specified by:
getCurrentRow
in interfaceExpressionRuntime
- Returns:
- the current row number.
-
getCurrentDataItem
public int getCurrentDataItem()
Description copied from interface:ExpressionRuntime
Returns the row number of the raw datasource that is currently accessed.- Specified by:
getCurrentDataItem
in interfaceExpressionRuntime
- Returns:
- the raw access row number.
-
getExportDescriptor
public String getExportDescriptor()
The output descriptor is a simple string collections consisting of the following components: exportclass/type/subtype For example, the PDF export would be: pageable/pdf The StreamHTML export would return table/html/stream- Specified by:
getExportDescriptor
in interfaceExpressionRuntime
- Returns:
- the export descriptor.
-
getProcessingContext
public ProcessingContext getProcessingContext()
Description copied from interface:ExpressionRuntime
Returns the current processing context.- Specified by:
getProcessingContext
in interfaceExpressionRuntime
- Returns:
- the processing context.
-
getCurrentGroup
public int getCurrentGroup()
- Specified by:
getCurrentGroup
in interfaceExpressionRuntime
-
getGroupStartRow
public int getGroupStartRow(String groupName)
- Specified by:
getGroupStartRow
in interfaceExpressionRuntime
-
getGroupStartRow
public int getGroupStartRow(int groupIndex)
- Specified by:
getGroupStartRow
in interfaceExpressionRuntime
-
isStructuralComplexReport
public boolean isStructuralComplexReport()
Description copied from interface:ExpressionRuntime
A flag indicating that this report contains crosstabs.- Specified by:
isStructuralComplexReport
in interfaceExpressionRuntime
- Returns:
-
isCrosstabActive
public boolean isCrosstabActive()
Description copied from interface:ExpressionRuntime
A flag indicating that a crosstab is actively processed.- Specified by:
isCrosstabActive
in interfaceExpressionRuntime
- Returns:
-
-