code array of a
Code attribute. Corresponding opcodes have a kind of Opcode.Kind#LOAD . Delivered as a CodeElement when traversing the elements of a CodeModel.
A local variable load instruction is composite:
LoadInstruction( TypeKind typeKind, int slot )
TypeKind is computational, and slot is u2.
Opcode.Kind#LOAD , CodeBuilder::loadLocal
| 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 | Returns: the computational type of the value to be loadedReturns the computational type of the value to be loaded. |
| 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.
The range of
API Note The explicit
| |
| slot | back to summary |
|---|---|
| public int slot() Returns the local variable slot to load from.
It is a
| |
| typeKind | back to summary |
|---|---|
| public TypeKind typeKind() Returns the computational type of the value to be loaded.
| |