code array of a
Code attribute. Corresponding opcodes have a kind of Opcode.Kind#INCREMENT . Delivered as a CodeElement when
traversing the elements of a CodeModel.
A local variable increment instruction is composite:
IncrementInstruction( int slot, int constant )
slot must be u2.
constant must be within [-32768, 32767].
Opcode.Kind#INCREMENT , CodeBuilder::iinc
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public static IncrementInstruction | Returns: an increment instructionthe local variable slot to increment slot, int the value to increment by constant)Returns an increment instruction. |
| public static IncrementInstruction | Returns: an increment instructionthe opcode for the specific type of increment instruction,
which must be of kind op, int Opcode.the local variable slot to increment slot, int the increment constant constant)Returns an increment instruction. |
| public int |
| constant | back to summary |
|---|---|
| public int constant() Returns the value to increment by.
| |
| of | back to summary |
|---|---|
| public static IncrementInstruction of(int slot, int constant) Returns an increment instruction.
| |
| of | back to summary |
|---|---|
| public static IncrementInstruction of(Opcode op, int slot, int constant) Returns an increment instruction.
API Note The explicit
| |
| slot | back to summary |
|---|---|
| public int slot() Returns the local variable slot to increment.
| |