org.objectweb.asm.tree

Class IntInsnNode

public class IntInsnNode extends AbstractInsnNode

A node that represents an instruction with a single int operand.

Author: Eric Bruneton

Field Summary
intoperand
The operand of this instruction.
Constructor Summary
IntInsnNode(int opcode, int operand)
Constructs a new IntInsnNode.
Method Summary
voidaccept(MethodVisitor mv)
AbstractInsnNodeclone(Map labels)
intgetType()
voidsetOpcode(int opcode)
Sets the opcode of this instruction.

Field Detail

operand

public int operand
The operand of this instruction.

Constructor Detail

IntInsnNode

public IntInsnNode(int opcode, int operand)
Constructs a new IntInsnNode.

Parameters: opcode the opcode of the instruction to be constructed. This opcode must be BIPUSH, SIPUSH or NEWARRAY. operand the operand of the instruction to be constructed.

Method Detail

accept

public void accept(MethodVisitor mv)

clone

public AbstractInsnNode clone(Map labels)

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 BIPUSH, SIPUSH or NEWARRAY.