public interface Value extends Equation
STRUCT_ARRAY, STRUCT_SCALAR, STRUCT_STRUCTURE, TYPE_BOOL, TYPE_DYNAMIC, TYPE_FLOAT, TYPE_INTEGER, TYPE_NUMERIC, TYPE_STRING, TYPE_UNDEF
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.Object |
getValue()
Return the value.
|
boolean |
getValueAsBoolean()
Return the value as a boolean.
|
float |
getValueAsFloat()
Return the value as a float.
|
int |
getValueAsInt()
Return the value as an int.
|
void |
setStructure(short struct)
Set the structure of the value.
|
void |
setType(short type)
Set the type of the value.
|
void |
setType(short type,
short struct)
Set the type and structure of the value.
|
void |
setValue(java.lang.Object value) |
void |
setValueAsBoolean(boolean value) |
void |
setValueAsFloat(float value) |
void |
setValueAsInt(int value) |
getExpression, setValue
clone, eval, evalAsBoolean, evalAsFloat, evalAsInt, getExpressionName, getLocalVariable, getLocalVariables, getParentBlock, getResultStructure, getResultType, getRoot, getVariable, getVariable, getVariables, getVariables, hasVariable, hasVariable, removeVariable, setParentBlock
java.lang.String getName()
java.lang.Object getValue()
int getValueAsInt()
float getValueAsFloat()
boolean getValueAsBoolean()
void setValue(java.lang.Object value)
void setValueAsInt(int value)
void setValueAsFloat(float value)
void setValueAsBoolean(boolean value)
void setType(short type, short struct)
type
- the typestruct
- the structurevoid setType(short type)
type
- the typevoid setStructure(short struct)
struct
- the structureCopyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence