JavaConstant. By using this stack manipulation, a value is always
represented as a constant pool value and no attempt is made to load the value via a specialized byte
code instruction, in contrast to using ConstantValue#toStackManipulation().
| Modifier and Type | Class and Description |
|---|---|
| public static enum | JavaConstantValue.
A visitor to resolve a |
| Modifier and Type | Field and Description |
|---|---|
| private final JavaConstant | constant
The instance to load onto the operand stack. |
| Access | Constructor and Description |
|---|---|
| public | JavaConstantValue(JavaConstant
The instance to load onto the operand stack. constant)Creates a constant pool value representing a |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | apply(MethodVisitor
The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextImplements org. |
| constant | back to summary |
|---|---|
| private final JavaConstant constant The instance to load onto the operand stack. | |
| JavaConstantValue | back to summary |
|---|---|
| public JavaConstantValue(JavaConstant constant) Creates a constant pool value representing a
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements org. Doc from org. Applies the stack manipulation that is described by this instance.
| |
JavaConstant to a ASM constant pool representation.
| Modifier and Type | Field and Description |
|---|---|
| public static final JavaConstantValue. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| INSTANCE | back to summary |
|---|---|
| public static final JavaConstantValue. The singleton instance. | |
| Visitor | back to summary |
|---|---|
| private Visitor() | |
| onDynamic | back to summary |
|---|---|
| public ConstantDynamic onDynamic(JavaConstant. Implements org. Doc from org. Invoked on a
| |
| onMethodHandle | back to summary |
|---|---|
| public Handle onMethodHandle(JavaConstant. Implements org. Doc from org. Invoked on a constant that represents a
| |
| onMethodType | back to summary |
|---|---|
| public Type onMethodType(JavaConstant. Implements org. Doc from org. Invoked on a constant that represents a
| |
| onType | back to summary |
|---|---|
| public Type onType(JavaConstant. Implements org. Doc from org. Invoked on a
| |
| onValue | back to summary |
|---|---|
| public Object onValue(JavaConstant. Implements org. Doc from org. Invoked on a
| |
| valueOf | back to summary |
|---|---|
| public static JavaConstantValue. | |
| values | back to summary |
|---|---|
| public static JavaConstantValue. | |