FileDocCategorySizeDatePackage
VarInsnNode.javaAPI DocGlassfish v2 API3109Thu Mar 02 11:51:16 GMT 2006oracle.toplink.libraries.asm.tree

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

Fields Summary
public int
var
The operand of this instruction. This operand is the index of a local variable.
Constructors Summary
public VarInsnNode(int opcode, int var)
Visits a local variable instruction. A local variable instruction is an instruction that loads or stores the value of a local variable.

param
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.
param
var the operand of the instruction to be constructed. This operand is the index of a local variable.

    super(opcode);
    this.var = var;
  
Methods Summary
public voidaccept(oracle.toplink.libraries.asm.CodeVisitor cv)

    cv.visitVarInsn(opcode, var);
  
public voidsetOpcode(int opcode)
Sets the opcode of this instruction.

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

    this.opcode = opcode;