org.jfree.formula

Class Formula

Implemented Interfaces:
Cloneable, Serializable

public class Formula
extends java.lang.Object
implements Serializable, Cloneable

Creation-Date: 31.10.2006, 14:43:05
Author:
Thomas Morgner

Constructor Summary

Formula(String formulaText)
Formula(LValue rootReference)

Method Summary

Object
clone()
Object
evaluate()
TypeValuePair
evaluateTyped()
LValue
getRootReference()
Returns the root reference for this formula.
void
initialize(FormulaContext context)

Constructor Details

Formula

public Formula(String formulaText)
            throws ParseException

Formula

public Formula(LValue rootReference)

Method Details

clone

public Object clone()
            throws CloneNotSupportedException

evaluate

public Object evaluate()

evaluateTyped

public TypeValuePair evaluateTyped()

getRootReference

public LValue getRootReference()
Returns the root reference for this formula. This allows external programms to modify the formula directly.
Returns:

initialize

public void initialize(FormulaContext context)
            throws EvaluationException