public class VarInsnNode extends AbstractInsnNode
| Modifier and Type | Field and Description |
|---|---|
int |
var
The operand of this instruction.
|
opcode| Constructor and Description |
|---|
VarInsnNode(int opcode,
int var)
Visits a local variable instruction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(CodeVisitor cv)
Makes the given code visitor visit this instruction.
|
void |
setOpcode(int opcode)
Sets the opcode of this instruction.
|
getOpcodepublic int var
public VarInsnNode(int opcode,
int var)
opcode - the opcode of the local variable instruction to be
constructed. This opcode must be ILOAD, LLOAD, FLOAD, DLOAD, ALOAD,
ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.var - the operand of the instruction to be constructed. This operand
is the index of a local variable.public void setOpcode(int opcode)
opcode - the new instruction opcode. This opcode must be ILOAD, LLOAD,
FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.public void accept(CodeVisitor cv)
AbstractInsnNodeaccept in class AbstractInsnNodecv - a code visitor.