org.objectweb.asm.tree
public abstract class AbstractInsnNode extends Object
Field Summary | |
---|---|
static int | FIELD_INSN
The type of {@link FieldInsnNode} instructions. |
static int | IINC_INSN
The type of {@link IincInsnNode} instructions. |
static int | INSN
The type of {@link InsnNode} instructions. |
static int | INT_INSN
The type of {@link IntInsnNode} instructions. |
static int | JUMP_INSN
The type of {@link JumpInsnNode} instructions. |
static int | LABEL
The type of {@link LabelNode} "instructions". |
static int | LDC_INSN
The type of {@link LdcInsnNode} instructions. |
static int | LOOKUPSWITCH_INSN
The type of {@link LookupSwitchInsnNode} instructions. |
static int | METHOD_INSN
The type of {@link MethodInsnNode} instructions. |
static int | MULTIANEWARRAY_INSN
The type of {@link MultiANewArrayInsnNode} instructions. |
protected int | opcode
The opcode of this instruction. |
static int | TABLESWITCH_INSN
The type of {@link TableSwitchInsnNode} instructions. |
static int | TYPE_INSN
The type of {@link TypeInsnNode} instructions. |
static int | VAR_INSN
The type of {@link VarInsnNode} instructions. |
Constructor Summary | |
---|---|
protected | AbstractInsnNode(int opcode)
Constructs a new {@link AbstractInsnNode}.
|
Method Summary | |
---|---|
abstract void | accept(MethodVisitor cv)
Makes the given code visitor visit this instruction.
|
int | getOpcode()
Returns the opcode of this instruction.
|
abstract int | getType()
Returns the type of this instruction.
|
Parameters: opcode the opcode of the instruction to be constructed.
Parameters: cv a code visitor.
Returns: the opcode of this instruction.
Returns: the type of this instruction, i.e. one the constants defined in this class.