public abstract class AbstractInsnNode extends Object
InsnList at a time.| Modifier and Type | Field and Description | 
|---|---|
| static int | FIELD_INSNThe type of  FieldInsnNodeinstructions. | 
| static int | FRAMEThe type of  FrameNode"instructions". | 
| static int | IINC_INSNThe type of  IincInsnNodeinstructions. | 
| static int | INSNThe type of  InsnNodeinstructions. | 
| static int | INT_INSNThe type of  IntInsnNodeinstructions. | 
| List<TypeAnnotationNode> | invisibleTypeAnnotationsThe runtime invisible type annotations of this instruction. | 
| static int | INVOKE_DYNAMIC_INSNThe type of  InvokeDynamicInsnNodeinstructions. | 
| static int | JUMP_INSNThe type of  JumpInsnNodeinstructions. | 
| static int | LABELThe type of  LabelNode"instructions". | 
| static int | LDC_INSNThe type of  LdcInsnNodeinstructions. | 
| static int | LINEThe type of  LineNumberNode"instructions". | 
| static int | LOOKUPSWITCH_INSNThe type of  LookupSwitchInsnNodeinstructions. | 
| static int | METHOD_INSNThe type of  MethodInsnNodeinstructions. | 
| static int | MULTIANEWARRAY_INSNThe type of  MultiANewArrayInsnNodeinstructions. | 
| protected int | opcodeThe opcode of this instruction. | 
| static int | TABLESWITCH_INSNThe type of  TableSwitchInsnNodeinstructions. | 
| static int | TYPE_INSNThe type of  TypeInsnNodeinstructions. | 
| static int | VAR_INSNThe type of  VarInsnNodeinstructions. | 
| List<TypeAnnotationNode> | visibleTypeAnnotationsThe runtime visible type annotations of this instruction. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractInsnNode(int opcode)Constructs a new  AbstractInsnNode. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | accept(MethodVisitor cv)Makes the given code visitor visit this instruction. | 
| protected void | acceptAnnotations(MethodVisitor mv)Makes the given visitor visit the annotations of this instruction. | 
| abstract AbstractInsnNode | clone(Map<LabelNode,LabelNode> labels)Returns a copy of this instruction. | 
| protected AbstractInsnNode | cloneAnnotations(AbstractInsnNode insn)Clones the annotations of the given instruction into 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. | 
public static final int INSN
InsnNode instructions.public static final int INT_INSN
IntInsnNode instructions.public static final int VAR_INSN
VarInsnNode instructions.public static final int TYPE_INSN
TypeInsnNode instructions.public static final int FIELD_INSN
FieldInsnNode instructions.public static final int METHOD_INSN
MethodInsnNode instructions.public static final int INVOKE_DYNAMIC_INSN
InvokeDynamicInsnNode instructions.public static final int JUMP_INSN
JumpInsnNode instructions.public static final int LABEL
LabelNode "instructions".public static final int LDC_INSN
LdcInsnNode instructions.public static final int IINC_INSN
IincInsnNode instructions.public static final int TABLESWITCH_INSN
TableSwitchInsnNode instructions.public static final int LOOKUPSWITCH_INSN
LookupSwitchInsnNode instructions.public static final int MULTIANEWARRAY_INSN
MultiANewArrayInsnNode instructions.public static final int FRAME
FrameNode "instructions".public static final int LINE
LineNumberNode "instructions".protected int opcode
public List<TypeAnnotationNode> visibleTypeAnnotations
TypeAnnotationNode objects.
 May be null.public List<TypeAnnotationNode> invisibleTypeAnnotations
TypeAnnotationNode objects.
 May be null.protected AbstractInsnNode(int opcode)
AbstractInsnNode.opcode - the opcode of the instruction to be constructed.public int getOpcode()
public abstract int getType()
public AbstractInsnNode getPrevious()
public AbstractInsnNode getNext()
public abstract void accept(MethodVisitor cv)
cv - a code visitor.protected final void acceptAnnotations(MethodVisitor mv)
mv - a method visitor.public abstract AbstractInsnNode clone(Map<LabelNode,LabelNode> labels)
labels - a map from LabelNodes to cloned LabelNodes.InsnList.protected final AbstractInsnNode cloneAnnotations(AbstractInsnNode insn)
insn - the source instruction.