public class ReportFormulaContext extends Object implements FormulaContext
Constructor and Description |
---|
ReportFormulaContext(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.
|
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.
|
FunctionRegistry |
getFunctionRegistry()
Returns the function registry.
|
LocalizationContext |
getLocalizationContext()
Returns the localization context of this formula.
|
OperatorFactory |
getOperatorFactory()
Returns the operator registry.
|
ProcessingContext |
getProcessingContext() |
ExpressionRuntime |
getRuntime() |
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.
|
Type |
resolveReferenceType(Object name)
Resolves the given reference.
|
public ReportFormulaContext(FormulaContext backend, ExpressionRuntime runtime)
backend
- the formula-context backend.runtime
- the ExpressionRuntimepublic DataSchema getDataSchema()
public LocalizationContext getLocalizationContext()
getLocalizationContext
in interface FormulaContext
public Configuration getConfiguration()
getConfiguration
in interface FormulaContext
public FunctionRegistry getFunctionRegistry()
getFunctionRegistry
in interface FormulaContext
public TypeRegistry getTypeRegistry()
getTypeRegistry
in interface FormulaContext
public OperatorFactory getOperatorFactory()
getOperatorFactory
in interface FormulaContext
public boolean isReferenceDirty(Object name) throws 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 FormulaContext
name
- the name that identifies the reference.EvaluationException
- if an error occurs.public Type resolveReferenceType(Object name)
resolveReferenceType
in interface FormulaContext
name
- the name that identifies the reference.public Object resolveReference(Object name) throws EvaluationException
resolveReference
in interface FormulaContext
name
- the name that identifies the reference.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 FormulaContext
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.