|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.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. |
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. |
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
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |