public class Constant extends Parameter
factory, type
Constructor and Description |
---|
Constant()
Creates a default Constant parameter.
|
Constant(java.lang.String name,
java.lang.String type)
Creates a Constant parameter with the given name and type.
|
Modifier and Type | Method and Description |
---|---|
void |
assign(java.lang.Object value)
Reports an attempt to assign to this Constant as an error.
|
java.lang.Boolean |
getBound()
Degenerate method to fetch the bound status for marshalling.
|
boolean |
isAssignable()
Reports whether this Constant is assignable.
|
boolean |
isBottom()
Reports whether this Constant is the bottom element of its type.
|
void |
rebind(java.lang.Object value)
Degenerate method to rebind this Constant to a new value.
|
Constant |
setBound(boolean value)
Degenerate method to set the bound status of this Constant.
|
void |
unbind()
Degenerate method to unbind this Constant.
|
evaluate, getContent, isBound, rebind, resolve, setContent, snapshot, toString
equals, getName, getType, hashCode, isOrdered, setType
safeEquals, safeHashCode, semanticError
public Constant()
public Constant(java.lang.String name, java.lang.String type)
name
- the name of this Constant.type
- the type of this Constant.public Constant setBound(boolean value)
public java.lang.Boolean getBound()
public void unbind()
public void rebind(java.lang.Object value)
public boolean isBottom()
isBottom
in class Expression
public boolean isAssignable()
isAssignable
in class Parameter