public class StaticValue extends AbstractLValue
Constructor and Description |
---|
StaticValue(Object value) |
StaticValue(Object value,
ParsePosition parsePosition) |
StaticValue(Object value,
Type type) |
StaticValue(Object value,
Type type,
ParsePosition parsePosition) |
Modifier and Type | Method and 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() |
clone, getChildValues, getContext, getParsePosition, setParsePosition
public StaticValue(Object value)
public StaticValue(Object value, ParsePosition parsePosition)
public StaticValue(Object value, Type type, ParsePosition parsePosition)
public void initialize(FormulaContext context) throws EvaluationException
initialize
in interface LValue
initialize
in class AbstractLValue
EvaluationException
public TypeValuePair evaluate()
public boolean isConstant()
public Object getValue()
public Type getValueType()
getValueType
in interface LValue
getValueType
in class AbstractLValue