| Modifier and Type | Class and Description |
|---|---|
| public static class | ConstantValue.
A simple representation of a constant value. |
| Modifier and Type | Method and Description |
|---|---|
| public TypeDescription | Returns: A description of the type of this constant.Returns a description of the type of this constant. |
| public StackManipulation | Returns: A stack manipulation loading this value.Returns a stack manipulation loading this value. |
| getTypeDescription | back to summary |
|---|---|
| public TypeDescription getTypeDescription() Returns a description of the type of this constant.
| |
| toStackManipulation | back to summary |
|---|---|
| public StackManipulation toStackManipulation() Returns a stack manipulation loading this value.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final StackManipulation | stackManipulation
A stack manipulation that loads a constant. |
| private final TypeDescription | typeDescription
The description of the constant value's type. |
| Access | Constructor and Description |
|---|---|
| protected | Simple(StackManipulation
A stack manipulation that loads a constant. stackManipulation, TypeDescription The description of the constant value's type. typeDescription)Creates a simple constant value. |
| Modifier and Type | Method and Description |
|---|---|
| public TypeDescription | getTypeDescription()
Implements org. |
| public StackManipulation | toStackManipulation()
Implements org. |
| public static ConstantValue | |
| public static ConstantValue | Returns: An appropriate representation of the constant value ornull if the
supplied value is not representable as a compile-time constant.The value to represent as a constant. value)Returns a constant value for the supplied constant value. |
| stackManipulation | back to summary |
|---|---|
| private final StackManipulation stackManipulation A stack manipulation that loads a constant. | |
| typeDescription | back to summary |
|---|---|
| private final TypeDescription typeDescription The description of the constant value's type. | |
| Simple | back to summary |
|---|---|
| protected Simple(StackManipulation stackManipulation, TypeDescription typeDescription) Creates a simple constant value.
| |
| getTypeDescription | back to summary |
|---|---|
| public TypeDescription getTypeDescription() Implements org. Doc from org. Returns a description of the type of this constant.
| |
| toStackManipulation | back to summary |
|---|---|
| public StackManipulation toStackManipulation() Implements org. Doc from org. Returns a stack manipulation loading this value.
| |
| wrap | back to summary |
|---|---|
| public static ConstantValue wrap(Object value) Returns a constant value for the supplied constant value.
| |
| wrapOrNull | back to summary |
|---|---|
| public static ConstantValue wrapOrNull(Object value) Returns a constant value for the supplied constant value.
| |