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.Visitor
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 net. |
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 net. Doc from net. 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 net. Doc from net. Invoked on a
|
onMethodHandle | back to summary |
---|---|
public Handle onMethodHandle(JavaConstant. Implements net. Doc from net. Invoked on a constant that represents a
|
onMethodType | back to summary |
---|---|
public Type onMethodType(JavaConstant. Implements net. Doc from net. Invoked on a constant that represents a
|
onType | back to summary |
---|---|
public Type onType(JavaConstant. Implements net. Doc from net. Invoked on a
|
onValue | back to summary |
---|---|
public Object onValue(JavaConstant. Implements net. Doc from net. Invoked on a
|
valueOf | back to summary |
---|---|
public static JavaConstantValue. |
values | back to summary |
---|---|
public static JavaConstantValue. |