org.objectweb.asm.tree
Class AbstractInsnNode
public abstract class AbstractInsnNode
A node that represents a bytecode instruction.
An instruction can appear
at most once in at most one InsnList at a time.
FIELD_INSN
public static final int FIELD_INSN
FRAME
public static final int FRAME
IINC_INSN
public static final int IINC_INSN
INSN
public static final int INSN
INT_INSN
public static final int INT_INSN
JUMP_INSN
public static final int JUMP_INSN
LABEL
public static final int LABEL
LDC_INSN
public static final int LDC_INSN
LINE
public static final int LINE
LOOKUPSWITCH_INSN
public static final int LOOKUPSWITCH_INSN
METHOD_INSN
public static final int METHOD_INSN
MULTIANEWARRAY_INSN
public static final int MULTIANEWARRAY_INSN
TABLESWITCH_INSN
public static final int TABLESWITCH_INSN
TYPE_INSN
public static final int TYPE_INSN
VAR_INSN
public static final int VAR_INSN
opcode
protected int opcode
The opcode of this instruction.
AbstractInsnNode
protected AbstractInsnNode(int opcode)
opcode - the opcode of the instruction to be constructed.
accept
public abstract void accept(MethodVisitor cv)
Makes the given code visitor visit this instruction.
clone
public abstract AbstractInsnNode clone(Map labels)
Returns a copy of this instruction.
labels - a map from LabelNodes to cloned LabelNodes.
- a copy of this instruction. The returned instruction does not
belong to any
InsnList.
getNext
public AbstractInsnNode getNext()
Returns the next instruction in the list to which this instruction
belongs, if any.
- the next instruction in the list to which this instruction
belongs, if any. May be null.
getOpcode
public int getOpcode()
Returns the opcode of this instruction.
- the opcode of this instruction.
getPrevious
public AbstractInsnNode getPrevious()
Returns the previous instruction in the list to which this instruction
belongs, if any.
- the previous instruction in the list to which this instruction
belongs, if any. May be null.
getType
public abstract int getType()
Returns the type of this instruction.
- the type of this instruction, i.e. one the constants defined in
this class.