Package org.jfree.report.expressions
Class FormulaExpression
java.lang.Object
org.jfree.report.expressions.AbstractExpression
org.jfree.report.expressions.FormulaExpression
- All Implemented Interfaces:
Serializable,Cloneable,Expression
Creation-Date: 04.11.2006, 19:24:04
- Author:
- Thomas Morgner
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the expression, expression should be reinitialized after the cloning.Return the current expression value.org.pentaho.reporting.libraries.formula.FormulaReturns the compiled formula.voidsetFormula(String formula) Methods inherited from class org.jfree.report.expressions.AbstractExpression
getDataRow, getInstance, getName, getParentLocale, getReportConfiguration, getResourceBundleFactory, getRuntime, isDeepTraversing, isPrecompute, isPreserve, setDeepTraversing, setName, setPrecompute, setPreserve, setRuntime
-
Constructor Details
-
FormulaExpression
public FormulaExpression()
-
-
Method Details
-
getFormula
-
getFormulaNamespace
-
getFormulaExpression
-
setFormula
-
getCompiledFormula
public org.pentaho.reporting.libraries.formula.Formula getCompiledFormula() throws org.pentaho.reporting.libraries.formula.parser.ParseExceptionReturns the compiled formula. The formula is not connected to a formula context.- Returns:
- the formula.
- Throws:
org.pentaho.reporting.libraries.formula.parser.ParseException- if the formula contains syntax errors.
-
computeValue
Return the current expression value.The value depends (obviously) on the expression implementation.
- Returns:
- the value of the function.
- Throws:
DataSourceException
-
clone
Clones the expression, expression should be reinitialized after the cloning.Expression maintain no state, cloning is done at the beginning of the report processing to disconnect the used expression from any other object space.
- Specified by:
clonein interfaceExpression- Overrides:
clonein classAbstractExpression- Returns:
- A clone of this expression.
- Throws:
CloneNotSupportedException- this should never happen.
-