org.jfree.formula.lvalues

Class StaticValue

public class StaticValue extends AbstractLValue

Creation-Date: 08.10.2006, 11:34:40

Author: Thomas Morgner

Constructor Summary
StaticValue(Object value)
StaticValue(Object value, Type type)
Method Summary
TypeValuePairevaluate()
ObjectgetValue()
TypegetValueType()
This function allows a program traversing the LibFormula object model to know what type this static value is.
voidinitialize(FormulaContext context)
booleanisConstant()
Checks, whether the LValue is constant.
StringtoString()

Constructor Detail

StaticValue

public StaticValue(Object value)

StaticValue

public StaticValue(Object value, Type type)

Method Detail

evaluate

public TypeValuePair evaluate()

getValue

public Object getValue()

getValueType

public Type getValueType()
This function allows a program traversing the LibFormula object model to know what type this static value is.

Returns: the type of the static value

initialize

public void initialize(FormulaContext context)

isConstant

public boolean isConstant()
Checks, whether the LValue is constant. Constant lvalues always return the same value.

Returns:

toString

public String toString()