|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.util.asm.tree.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 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. |
(package private) int |
index
Index of this instruction in the list to which it belongs. |
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. |
(package private) AbstractInsnNode |
next
Next instruction in the list to which this instruction belongs. |
protected int |
opcode
The opcode of this instruction. |
(package private) AbstractInsnNode |
prev
Previous instruction in the list to which this instruction belongs. |
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. |
(package private) static LabelNode |
clone(LabelNode label,
Map map)
Returns the clone of the given label. |
(package private) static LabelNode[] |
clone(List labels,
Map map)
Returns the clones of the given labels. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 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
AbstractInsnNode prev
AbstractInsnNode next
int index
InsnList.cache is not null. A
value of -1 indicates that this instruction does not belong to any
InsnList.
| Constructor Detail |
|---|
protected AbstractInsnNode(int opcode)
AbstractInsnNode.
opcode - the opcode of the instruction to be constructed.| Method Detail |
|---|
public int getOpcode()
public abstract int getType()
public AbstractInsnNode getPrevious()
public AbstractInsnNode getNext()
public abstract void accept(MethodVisitor cv)
cv - a code visitor.public abstract AbstractInsnNode clone(Map labels)
labels - a map from LabelNodes to cloned LabelNodes.
InsnList.
static LabelNode clone(LabelNode label,
Map map)
label - a label.map - a map from LabelNodes to cloned LabelNodes.
static LabelNode[] clone(List labels,
Map map)
labels - a list of labels.map - a map from LabelNodes to cloned LabelNodes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||