src/share/classes/jdk/internal/org/objectweb/asm/tree/VarInsnNode.java
Print this page
*** 78,91 ****
public int var;
/**
* Constructs a new {@link VarInsnNode}.
*
! * @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.
*/
public VarInsnNode(final int opcode, final int var) {
super(opcode);
this.var = var;
--- 78,93 ----
public int var;
/**
* Constructs a new {@link VarInsnNode}.
*
! * @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.
*/
public VarInsnNode(final int opcode, final int var) {
super(opcode);
this.var = var;
*** 92,104 ****
}
/**
* 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.
*/
public void setOpcode(final int opcode) {
this.opcode = opcode;
}
--- 94,107 ----
}
/**
* 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.
*/
public void setOpcode(final int opcode) {
this.opcode = opcode;
}
*** 108,119 ****
}
@Override
public void accept(final MethodVisitor mv) {
mv.visitVarInsn(opcode, var);
}
@Override
public AbstractInsnNode clone(final Map<LabelNode, LabelNode> labels) {
! return new VarInsnNode(opcode, var);
}
}
--- 111,123 ----
}
@Override
public void accept(final MethodVisitor mv) {
mv.visitVarInsn(opcode, var);
+ acceptAnnotations(mv);
}
@Override
public AbstractInsnNode clone(final Map<LabelNode, LabelNode> labels) {
! return new VarInsnNode(opcode, var).cloneAnnotations(this);
}
}