org.jfree.report.data

Class RunningExpressionSlot

Implemented Interfaces:
ExpressionRuntime, ExpressionSlot, PublicCloneable

public class RunningExpressionSlot
extends java.lang.Object
implements ExpressionSlot, ExpressionRuntime

Creation-Date: 25.11.2006, 15:18:58
Author:
Thomas Morgner

Constructor Summary

RunningExpressionSlot(Expression expression, StaticExpressionRuntimeData runtimeData, PrecomputeNode precomputeNode)

Method Summary

void
advance()
Object
clone()
Configuration
getConfiguration()
int
getCurrentRow()
ReportData
getData()
Returns the report data used in this section.
DataRow
getDataRow()
Returns the datarow.
Object
getDeclaringParent()
Expression
getExpression()
String
getName()
ReportContext
getReportContext()
ResourceBundleFactory
getResourceBundleFactory()
Object
getValue()
boolean
isDeepTraversing()
boolean
isPreserve()
void
updateDataRow(DataRow dataRow)

Constructor Details

RunningExpressionSlot

public RunningExpressionSlot(Expression expression,
                             StaticExpressionRuntimeData runtimeData,
                             PrecomputeNode precomputeNode)

Method Details

advance

public void advance()
            throws DataSourceException
Specified by:
advance in interface ExpressionSlot

clone

public Object clone()
            throws CloneNotSupportedException

getConfiguration

public Configuration getConfiguration()
Specified by:
getConfiguration in interface ExpressionRuntime

getCurrentRow

public int getCurrentRow()
Specified by:
getCurrentRow in interface ExpressionRuntime

getData

public ReportData getData()
Returns the report data used in this section. If subreports are used, this does not reflect the complete report data.

All access to the report data must be properly synchronized. Failure to do so may result in funny results. Do not assume that the report data will be initialized on the current cursor positon.

Specified by:
getData in interface ExpressionRuntime
Returns:

getDataRow

public DataRow getDataRow()
Returns the datarow.
Specified by:
getDataRow in interface ExpressionRuntime
Returns:

getDeclaringParent

public Object getDeclaringParent()
Specified by:
getDeclaringParent in interface ExpressionRuntime

getExpression

public Expression getExpression()

getName

public String getName()
Specified by:
getName in interface ExpressionSlot

getReportContext

public ReportContext getReportContext()
Specified by:
getReportContext in interface ExpressionRuntime

getResourceBundleFactory

public ResourceBundleFactory getResourceBundleFactory()
Specified by:
getResourceBundleFactory in interface ExpressionRuntime

getValue

public Object getValue()
            throws DataSourceException
Specified by:
getValue in interface ExpressionSlot

isDeepTraversing

public boolean isDeepTraversing()
Specified by:
isDeepTraversing in interface ExpressionSlot

isPreserve

public boolean isPreserve()
Specified by:
isPreserve in interface ExpressionSlot

updateDataRow

public void updateDataRow(DataRow dataRow)
Specified by:
updateDataRow in interface ExpressionSlot