public class LocalConstant extends LocalVariable
name, struct, type, value
block, root
STRUCT_ARRAY, STRUCT_SCALAR, STRUCT_STRUCTURE, TYPE_BOOL, TYPE_DYNAMIC, TYPE_FLOAT, TYPE_INTEGER, TYPE_NUMERIC, TYPE_STRING, TYPE_UNDEF
Constructor and Description |
---|
LocalConstant(java.lang.String name)
Constructor.
|
LocalConstant(java.lang.String name,
java.lang.Object value)
Constructor.
|
LocalConstant(java.lang.String name,
short type)
Constructor.
|
LocalConstant(java.lang.String name,
short type,
java.lang.Object value)
Constructor.
|
LocalConstant(java.lang.String name,
short type,
java.lang.Object value,
short struct)
Constructor.
|
LocalConstant(java.lang.String name,
short type,
short struct)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
isLocal
getExpressionName, getResultStructure, getResultType, getVariable, getVariables, setValue
checkType, eval, evalAsBoolean, evalAsFloat, evalAsInt, getExpression, getName, getStructure, getType, getValue, getValueAsBoolean, getValueAsFloat, getValueAsInt, initType, setDefaultValue, setName, setStructure, setType, setType, setValue, setValueAsBoolean, setValueAsFloat, setValueAsInt
getParentBlock, getRoot, setParentBlock, setRoot
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getLocalVariable, getLocalVariables, getParentBlock, getRoot, getVariable, getVariables, hasVariable, hasVariable, removeVariable, setParentBlock
public LocalConstant(java.lang.String name)
name
- the constant namepublic LocalConstant(java.lang.String name, short type)
name
- the constant nametype
- the constant typepublic LocalConstant(java.lang.String name, short type, short struct)
name
- the constant nametype
- the constant typestruct
- the constant structurepublic LocalConstant(java.lang.String name, short type, java.lang.Object value)
name
- the constant nametype
- the constant typevalue
- the constant valuepublic LocalConstant(java.lang.String name, short type, java.lang.Object value, short struct)
name
- the constant nametype
- the constant typestruct
- the constant structurevalue
- the constant valuepublic LocalConstant(java.lang.String name, java.lang.Object value)
name
- the constant namevalue
- the constant valuepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface Expression
clone
in class LocalVariable
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object o)
equals
in class LocalVariable
public int hashCode()
hashCode
in class LocalVariable
Copyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence