org.objectweb.asm.tree
public abstract class AbstractInsnNode extends Object
| Field Summary | |
|---|---|
| static int | FIELD_INSN
The type of FieldInsnNode instructions. |
| static int | FRAME
The type of FrameNode "instructions". |
| static int | IINC_INSN
The type of IincInsnNode instructions. |
| static int | INSN
The type of InsnNode instructions. |
| static int | INT_INSN
The type of IntInsnNode instructions. |
| static int | JUMP_INSN
The type of JumpInsnNode instructions. |
| static int | LABEL
The type of LabelNode "instructions". |
| static int | LDC_INSN
The type of LdcInsnNode instructions. |
| static int | LINE
The type of LineNumberNode "instructions". |
| static int | LOOKUPSWITCH_INSN
The type of LookupSwitchInsnNode instructions. |
| static int | METHOD_INSN
The type of MethodInsnNode instructions. |
| static int | MULTIANEWARRAY_INSN
The type of MultiANewArrayInsnNode instructions. |
| protected int | opcode
The opcode of this instruction. |
| static int | TABLESWITCH_INSN
The type of TableSwitchInsnNode instructions. |
| static int | TYPE_INSN
The type of TypeInsnNode instructions. |
| static int | VAR_INSN
The type of VarInsnNode instructions. |
| Constructor Summary | |
|---|---|
| protected | AbstractInsnNode(int opcode)
Constructs a new AbstractInsnNode.
|
| Method Summary | |
|---|---|
| abstract void | accept(MethodVisitor cv)
Makes the given code visitor visit this instruction.
|
| abstract AbstractInsnNode | clone(Map labels)
Returns a copy of this instruction.
|
| AbstractInsnNode | getNext()
Returns the next instruction in the list to which this instruction
belongs, if any.
|
| int | getOpcode()
Returns the opcode of this instruction.
|
| AbstractInsnNode | getPrevious()
Returns the previous instruction in the list to which this instruction
belongs, if any.
|
| abstract int | getType()
Returns the type of this instruction.
|
Parameters: opcode the opcode of the instruction to be constructed.
Parameters: cv a code visitor.
Parameters: labels a map from LabelNodes to cloned LabelNodes.
Returns: a copy of this instruction. The returned instruction does not belong to any InsnList.
Returns: the next instruction in the list to which this instruction belongs, if any. May be null.
Returns: the opcode of this instruction.
Returns: the previous instruction in the list to which this instruction belongs, if any. May be null.
Returns: the type of this instruction, i.e. one the constants defined in this class.