org.jfree.formula.lvalues

Class StaticValue

Implemented Interfaces:
Cloneable, LValue, Serializable

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

TypeValuePair
evaluate()
Object
getValue()
Type
getValueType()
This function allows a program traversing the LibFormula object model to know what type this static value is.
void
initialize(FormulaContext context)
boolean
isConstant()
Checks, whether the LValue is constant.
String
toString()

Methods inherited from class org.jfree.formula.lvalues.AbstractLValue

clone, getChildValues, getContext, getValueType, initialize

Constructor Details

StaticValue

public StaticValue(Object value)

StaticValue

public StaticValue(Object value,
                   Type type)

Method Details

evaluate

public TypeValuePair evaluate()
Specified by:
evaluate in interface LValue

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.
Specified by:
getValueType in interface LValue
Overrides:
getValueType in interface AbstractLValue
Returns:
the type of the static value

initialize

public void initialize(FormulaContext context)
            throws EvaluationException
Specified by:
initialize in interface LValue
Overrides:
initialize in interface AbstractLValue

isConstant

public boolean isConstant()
Checks, whether the LValue is constant. Constant lvalues always return the same value.
Specified by:
isConstant in interface LValue
Returns:

toString

public String toString()