Class StaticValue
- java.lang.Object
-
- org.pentaho.reporting.libraries.formula.lvalues.AbstractLValue
-
- org.pentaho.reporting.libraries.formula.lvalues.StaticValue
-
- All Implemented Interfaces:
Serializable
,Cloneable
,LValue
public class StaticValue extends AbstractLValue
Creation-Date: 08.10.2006, 11:34:40- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StaticValue(Object value)
StaticValue(Object value, ParsePosition parsePosition)
StaticValue(Object value, Type type)
StaticValue(Object value, Type type, ParsePosition parsePosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.pentaho.reporting.libraries.formula.lvalues.AbstractLValue
clone, getChildValues, getContext, getParsePosition, setParsePosition
-
-
-
-
Constructor Detail
-
StaticValue
public StaticValue(Object value)
-
StaticValue
public StaticValue(Object value, ParsePosition parsePosition)
-
StaticValue
public StaticValue(Object value, Type type, ParsePosition parsePosition)
-
-
Method Detail
-
initialize
public void initialize(FormulaContext context) throws EvaluationException
- Specified by:
initialize
in interfaceLValue
- Overrides:
initialize
in classAbstractLValue
- Throws:
EvaluationException
-
evaluate
public TypeValuePair evaluate()
-
isConstant
public boolean isConstant()
Checks whether the LValue is constant. Constant lvalues always return the same value.- Returns:
-
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 interfaceLValue
- Overrides:
getValueType
in classAbstractLValue
- Returns:
- the type of the static value
-
-