public class FormulaExpression extends AbstractExpression
| Constructor and Description |
|---|
FormulaExpression() |
| Modifier and Type | Method and Description |
|---|---|
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() |
void |
setFormula(java.lang.String formula) |
getDataRow, getInstance, getName, getParentLocale, getReportConfiguration, getResourceBundleFactory, getRuntime, isDeepTraversing, isPrecompute, isPreserve, setDeepTraversing, setName, setPrecompute, setPreserve, setRuntimepublic java.lang.String getFormula()
public java.lang.String getFormulaNamespace()
public java.lang.String getFormulaExpression()
public void setFormula(java.lang.String formula)
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.public java.lang.Object computeValue()
throws DataSourceException
The value depends (obviously) on the expression implementation.
DataSourceExceptionpublic 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 Expressionclone in class AbstractExpressionjava.lang.CloneNotSupportedException - this should never happen.