org.objectweb.asm.tree
Class AbstractInsnNode
public abstract class AbstractInsnNode
A node that represents a bytecode instruction.
- Eric Bruneton
void | accept(MethodVisitor cv) - Makes the given code visitor visit this instruction.
|
int | getOpcode() - Returns the opcode of this instruction.
|
int | getType() - Returns the type of this instruction.
|
FIELD_INSN
public static final int FIELD_INSN
- 4
IINC_INSN
public static final int IINC_INSN
- 9
INSN
public static final int INSN
- 0
INT_INSN
public static final int INT_INSN
- 1
JUMP_INSN
public static final int JUMP_INSN
- 6
LABEL
public static final int LABEL
- 7
LDC_INSN
public static final int LDC_INSN
- 8
LOOKUPSWITCH_INSN
public static final int LOOKUPSWITCH_INSN
- 11
METHOD_INSN
public static final int METHOD_INSN
- 5
MULTIANEWARRAY_INSN
public static final int MULTIANEWARRAY_INSN
- 12
TABLESWITCH_INSN
public static final int TABLESWITCH_INSN
- 10
TYPE_INSN
public static final int TYPE_INSN
- 3
VAR_INSN
public static final int VAR_INSN
- 2
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 void accept(MethodVisitor cv)
Makes the given code visitor visit this instruction.
cv
- a code visitor.
getOpcode
public int getOpcode()
Returns the opcode of this instruction.
- the opcode of this instruction.
getType
public int getType()
Returns the type of this instruction.
- the type of this instruction, i.e. one the constants defined in
this class.