public class ReportFormulaContext extends Object implements org.pentaho.reporting.libraries.formula.FormulaContext
Constructor and Description |
---|
ReportFormulaContext(org.pentaho.reporting.libraries.formula.FormulaContext backend,
ExpressionRuntime runtime)
Creates a new ReportFormulaContext using the given FormulaContext as backend.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Invalidates the formula context.
|
org.pentaho.reporting.libraries.base.config.Configuration |
getConfiguration()
Returns the local configuration of the formula.
|
Date |
getCurrentDate() |
DataRow |
getDataRow()
Returns the current data-row.
|
DataSchema |
getDataSchema() |
String |
getExportType()
Return the export type of the current report processing run.
|
org.pentaho.reporting.libraries.formula.function.FunctionRegistry |
getFunctionRegistry()
Returns the function registry.
|
org.pentaho.reporting.libraries.formula.LocalizationContext |
getLocalizationContext()
Returns the localization context of this formula.
|
org.pentaho.reporting.libraries.formula.operators.OperatorFactory |
getOperatorFactory()
Returns the operator registry.
|
ProcessingContext |
getProcessingContext() |
ExpressionRuntime |
getRuntime() |
org.pentaho.reporting.libraries.formula.typing.TypeRegistry |
getTypeRegistry()
Returns the type registry.
|
boolean |
isReferenceDirty(Object name)
Checks whether the external object referenced by
name has changed. |
boolean |
isResultSetEmpty() |
Object |
resolveReference(Object name)
Queries the type of the given reference.
|
org.pentaho.reporting.libraries.formula.typing.Type |
resolveReferenceType(Object name)
Resolves the given reference.
|
public ReportFormulaContext(org.pentaho.reporting.libraries.formula.FormulaContext backend, ExpressionRuntime runtime)
backend
- the formula-context backend.runtime
- the ExpressionRuntimepublic DataSchema getDataSchema()
public org.pentaho.reporting.libraries.formula.LocalizationContext getLocalizationContext()
getLocalizationContext
in interface org.pentaho.reporting.libraries.formula.FormulaContext
public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
getConfiguration
in interface org.pentaho.reporting.libraries.formula.FormulaContext
public org.pentaho.reporting.libraries.formula.function.FunctionRegistry getFunctionRegistry()
getFunctionRegistry
in interface org.pentaho.reporting.libraries.formula.FormulaContext
public org.pentaho.reporting.libraries.formula.typing.TypeRegistry getTypeRegistry()
getTypeRegistry
in interface org.pentaho.reporting.libraries.formula.FormulaContext
public org.pentaho.reporting.libraries.formula.operators.OperatorFactory getOperatorFactory()
getOperatorFactory
in interface org.pentaho.reporting.libraries.formula.FormulaContext
public boolean isReferenceDirty(Object name) throws org.pentaho.reporting.libraries.formula.EvaluationException
name
has changed. This forwards the call to the
data-row and checks, whether the value has changed since the last call to advance().isReferenceDirty
in interface org.pentaho.reporting.libraries.formula.FormulaContext
name
- the name that identifies the reference.org.pentaho.reporting.libraries.formula.EvaluationException
- if an error occurs.public org.pentaho.reporting.libraries.formula.typing.Type resolveReferenceType(Object name)
resolveReferenceType
in interface org.pentaho.reporting.libraries.formula.FormulaContext
name
- the name that identifies the reference.public Object resolveReference(Object name) throws org.pentaho.reporting.libraries.formula.EvaluationException
resolveReference
in interface org.pentaho.reporting.libraries.formula.FormulaContext
name
- the name that identifies the reference.org.pentaho.reporting.libraries.formula.EvaluationException
- if an error occurs.public DataRow getDataRow()
public void close()
public String getExportType()
public ProcessingContext getProcessingContext()
public boolean isResultSetEmpty()
public ExpressionRuntime getRuntime()
public Date getCurrentDate()
getCurrentDate
in interface org.pentaho.reporting.libraries.formula.FormulaContext