Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use LoadInstruction
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
code
array of a
Code
attribute. Corresponding opcodes will have a kind
of
Opcode.Kind#LOAD
. Delivered as a CodeElement
when
traversing the elements of a CodeModel
.
Modifier and Type | Method and Description |
---|---|
public static LoadInstruction | |
public static LoadInstruction | Returns: a local variable load instructionthe opcode for the specific type of load instruction,
which must be of kind op, int Opcode. the local variable slot to load from slot)Returns a local variable load instruction. |
public int | |
public TypeKind |
of | back to summary |
---|---|
public static LoadInstruction of(TypeKind kind, int slot) Returns a local variable load instruction.
|
of | back to summary |
---|---|
public static LoadInstruction of(Opcode op, int slot) Returns a local variable load instruction.
|
slot | back to summary |
---|---|
public int slot() Returns the local variable slot to load from.
|
typeKind | back to summary |
---|---|
public TypeKind typeKind() Returns the type of the value to be loaded.
|