public class FormulaFunction extends AbstractExpression implements Function
Constructor and Description |
---|
FormulaFunction() |
Modifier and Type | Method and Description |
---|---|
Function |
advance()
When the advance method is called, the function is asked to perform the
next step of its computation.
|
java.lang.Object |
clone()
Clones the expression, expression should be reinitialized after the
cloning.
|
java.lang.Object |
computeValue()
Return the current expression value.
|
org.pentaho.reporting.libraries.formula.Formula |
getCompiledFormula()
Returns the compiled formula.
|
java.lang.String |
getFormula() |
java.lang.String |
getFormulaExpression() |
java.lang.String |
getFormulaNamespace() |
java.lang.String |
getInitial() |
java.lang.String |
getInitialExpression() |
java.lang.String |
getInitialNamespace() |
void |
setFormula(java.lang.String formula) |
void |
setInitial(java.lang.String initial) |
getDataRow, getInstance, getName, getParentLocale, getReportConfiguration, getResourceBundleFactory, getRuntime, isDeepTraversing, isPrecompute, isPreserve, setDeepTraversing, setName, setPrecompute, setPreserve, setRuntime
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstance, getName, isDeepTraversing, isPrecompute, isPreserve, setDeepTraversing, setName, setPrecompute, setPreserve, setRuntime
public java.lang.String getInitial()
public java.lang.String getInitialExpression()
public java.lang.String getInitialNamespace()
public void setInitial(java.lang.String initial)
public java.lang.String getFormula()
public java.lang.String getFormulaNamespace()
public java.lang.String getFormulaExpression()
public void setFormula(java.lang.String formula)
public Function advance() throws DataSourceException
advance
in interface Function
DataSourceException
public java.lang.Object computeValue() throws DataSourceException
The value depends (obviously) on the expression implementation.
computeValue
in interface Expression
DataSourceException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Expression maintain no state, cloning is done at the beginning of the report processing to disconnect the used expression from any other object space.
clone
in interface Expression
clone
in class AbstractExpression
java.lang.CloneNotSupportedException
- this should never happen.public org.pentaho.reporting.libraries.formula.Formula getCompiledFormula() throws org.pentaho.reporting.libraries.formula.parser.ParseException
org.pentaho.reporting.libraries.formula.parser.ParseException
- if the formula contains syntax errors.