org.objectweb.asm.tree

Class VarInsnNode

public class VarInsnNode extends AbstractInsnNode

A node that represents a local variable instruction. A local variable instruction is an instruction that loads or stores the value of a local variable.

Author: Eric Bruneton

Field Summary
intvar
The operand of this instruction.
Constructor Summary
VarInsnNode(int opcode, int var)
Constructs a new {@link VarInsnNode}.
Method Summary
voidaccept(MethodVisitor mv)
intgetType()
voidsetOpcode(int opcode)
Sets the opcode of this instruction.

Field Detail

var

public int var
The operand of this instruction. This operand is the index of a local variable.

Constructor Detail

VarInsnNode

public VarInsnNode(int opcode, int var)
Constructs a new {@link VarInsnNode}.

Parameters: 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.

Method Detail

accept

public void accept(MethodVisitor mv)

getType

public int getType()

setOpcode

public void setOpcode(int opcode)
Sets the opcode of this instruction.

Parameters: opcode the new instruction opcode. This opcode must be ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.