|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.ReportFormulaContext
public class ReportFormulaContext
The report formula context is a FormulaContext implementation that connects the formula evaluator with the current data-row of the report process.
This is an internal class used by the FormulaExpression and FormulaFunction. It has no sensible usages outside of that scope.
| Constructor Summary | |
|---|---|
ReportFormulaContext(org.pentaho.reporting.libraries.formula.FormulaContext backend,
ExpressionRuntime runtime)
Creates a new ReportFormulaContext using the given FormulaContext as backend. |
|
| Method Summary | |
|---|---|
void |
close()
Invalidates the formula context. |
org.pentaho.reporting.libraries.base.config.Configuration |
getConfiguration()
Returns the local configuration of the formula. |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportFormulaContext(org.pentaho.reporting.libraries.formula.FormulaContext backend,
ExpressionRuntime runtime)
backend - the formula-context backend.runtime - the ExpressionRuntime| Method Detail |
|---|
public DataSchema getDataSchema()
public org.pentaho.reporting.libraries.formula.LocalizationContext getLocalizationContext()
getLocalizationContext in interface org.pentaho.reporting.libraries.formula.FormulaContextpublic org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
getConfiguration in interface org.pentaho.reporting.libraries.formula.FormulaContextpublic org.pentaho.reporting.libraries.formula.function.FunctionRegistry getFunctionRegistry()
getFunctionRegistry in interface org.pentaho.reporting.libraries.formula.FormulaContextpublic org.pentaho.reporting.libraries.formula.typing.TypeRegistry getTypeRegistry()
getTypeRegistry in interface org.pentaho.reporting.libraries.formula.FormulaContextpublic 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.ContextEvaluationException
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.FormulaContextname - the name that identifies the reference.
org.pentaho.reporting.libraries.formula.ContextEvaluationException - if an error occurs.public org.pentaho.reporting.libraries.formula.typing.Type resolveReferenceType(Object name)
resolveReferenceType in interface org.pentaho.reporting.libraries.formula.FormulaContextname - the name that identifies the reference.
public Object resolveReference(Object name)
throws org.pentaho.reporting.libraries.formula.ContextEvaluationException
resolveReference in interface org.pentaho.reporting.libraries.formula.FormulaContextname - the name that identifies the reference.
org.pentaho.reporting.libraries.formula.ContextEvaluationException - if an error occurs.public DataRow getDataRow()
public void close()
public String getExportType()
public ProcessingContext getProcessingContext()
public boolean isResultSetEmpty()
public ExpressionRuntime getRuntime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||