FieldInsnNode
, FrameNode
, IincInsnNode
, InsnNode
, IntInsnNode
, InvokeDynamicInsnNode
, JumpInsnNode
, LabelNode
, LdcInsnNode
, LineNumberNode
, LookupSwitchInsnNode
, MethodInsnNode
, MultiANewArrayInsnNode
, TableSwitchInsnNode
, TypeInsnNode
, VarInsnNode
public abstract class AbstractInsnNode extends Object
InsnList
at a time.Modifier and Type | Field | Description |
---|---|---|
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. |
List<TypeAnnotationNode> |
invisibleTypeAnnotations |
The runtime invisible type annotations of this instruction.
|
static int |
INVOKE_DYNAMIC_INSN |
The type of
InvokeDynamicInsnNode 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. |
List<TypeAnnotationNode> |
visibleTypeAnnotations |
The runtime visible type annotations of this instruction.
|
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractInsnNode(int opcode) |
Constructs a new
AbstractInsnNode . |
Modifier and Type | Method | 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.