org.jfree.report.expressions

Class FormulaExpression

Implemented Interfaces:
Cloneable, Expression, Serializable

public class FormulaExpression
extends AbstractExpression

Creation-Date: 04.11.2006, 19:24:04
Author:
Thomas Morgner

Constructor Summary

FormulaExpression()

Method Summary

Object
clone()
Clones the expression, expression should be reinitialized after the cloning.
Object
computeValue()
Return the current expression value.
Formula
getCompiledFormula()
Returns the compiled formula.
String
getFormula()
String
getFormulaExpression()
String
getFormulaNamespace()
void
setFormula(String formula)

Methods inherited from class org.jfree.report.expressions.AbstractExpression

clone, getDataRow, getInstance, getName, getParentLocale, getReportConfiguration, getResourceBundleFactory, getRuntime, isDeepTraversing, isPrecompute, isPreserve, setDeepTraversing, setName, setPrecompute, setPreserve, setRuntime

Constructor Details

FormulaExpression

public FormulaExpression()

Method Details

clone

public Object clone()
            throws CloneNotSupportedException
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:
clone in interface Expression
Overrides:
clone in interface AbstractExpression
Returns:
A clone of this expression.

computeValue

public Object computeValue()
            throws DataSourceException
Return the current expression value.

The value depends (obviously) on the expression implementation.

Specified by:
computeValue in interface Expression
Returns:
the value of the function.

getCompiledFormula

public Formula getCompiledFormula()
            throws ParseException
Returns the compiled formula. The formula is not connected to a formula context.
Returns:
the formula.

getFormula

public String getFormula()

getFormulaExpression

public String getFormulaExpression()

getFormulaNamespace

public String getFormulaNamespace()

setFormula

public void setFormula(String formula)