org.jfree.report.expressions

Class FormulaExpression

public class FormulaExpression extends AbstractExpression

Creation-Date: 04.11.2006, 19:24:04

Author: Thomas Morgner

Constructor Summary
FormulaExpression()
Method Summary
Objectclone()
Clones the expression, expression should be reinitialized after the cloning.
ObjectcomputeValue()
Return the current expression value.
FormulagetCompiledFormula()
Returns the compiled formula.
StringgetFormula()
StringgetFormulaExpression()
StringgetFormulaNamespace()
voidsetFormula(String formula)

Constructor Detail

FormulaExpression

public FormulaExpression()

Method Detail

clone

public Object 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.

Returns: A clone of this expression.

Throws: CloneNotSupportedException this should never happen.

computeValue

public Object computeValue()
Return the current expression value.

The value depends (obviously) on the expression implementation.

Returns: the value of the function.

getCompiledFormula

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

Returns: the formula.

Throws: ParseException if the formula contains syntax errors.

getFormula

public String getFormula()

getFormulaExpression

public String getFormulaExpression()

getFormulaNamespace

public String getFormulaNamespace()

setFormula

public void setFormula(String formula)