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
Creation-Date: 08.10.2006, 11:34:40
- Author:
- Thomas Morgner
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStaticValue
(Object value) StaticValue
(Object value, ParsePosition parsePosition) StaticValue
(Object value, Type type) StaticValue
(Object value, Type type, ParsePosition parsePosition) -
Method Summary
Modifier and TypeMethodDescriptionevaluate()
getValue()
This function allows a program traversing the LibFormula object model to know what type this static value is.void
initialize
(FormulaContext context) boolean
Checks whether the LValue is constant.toString()
Methods inherited from class AbstractLValue
clone, getChildValues, getContext, getParsePosition, setParsePosition
-
Constructor Details
-
StaticValue
-
StaticValue
-
StaticValue
-
StaticValue
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceLValue
- Overrides:
initialize
in classAbstractLValue
- Throws:
EvaluationException
-
evaluate
-
toString
-
isConstant
public boolean isConstant()Checks whether the LValue is constant. Constant lvalues always return the same value.- Returns:
-
getValue
-
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
-