public class StaticValue extends AbstractLValue
Constructor and Description |
---|
StaticValue(java.lang.Object value) |
StaticValue(java.lang.Object value,
ParsePosition parsePosition) |
StaticValue(java.lang.Object value,
Type type) |
StaticValue(java.lang.Object value,
Type type,
ParsePosition parsePosition) |
Modifier and Type | Method and Description |
---|---|
TypeValuePair |
evaluate() |
java.lang.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.
|
java.lang.String |
toString() |
clone, getChildValues, getContext, getParsePosition, setParsePosition
public StaticValue(java.lang.Object value)
public StaticValue(java.lang.Object value, Type type)
public StaticValue(java.lang.Object value, ParsePosition parsePosition)
public StaticValue(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public boolean isConstant()
public java.lang.Object getValue()
public Type getValueType()
getValueType
in interface LValue
getValueType
in class AbstractLValue