org.objectweb.asm.tree
类 AbstractInsnNode

java.lang.Object
  继承者 org.objectweb.asm.tree.AbstractInsnNode
直接已知子类:
FieldInsnNode, FrameNode, IincInsnNode, InsnNode, IntInsnNode, JumpInsnNode, LabelNode, LdcInsnNode, LineNumberNode, LookupSwitchInsnNode, MethodInsnNode, MultiANewArrayInsnNode, TableSwitchInsnNode, TypeInsnNode, VarInsnNode

public abstract class AbstractInsnNode
extends Object

A node that represents a bytecode instruction. An instruction can appear at most once in at most one InsnList at a time.

作者:
Eric Bruneton

字段摘要
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.
 
构造方法摘要
protected AbstractInsnNode(int opcode)
          Constructs a new AbstractInsnNode.
 
方法摘要
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.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

INSN

public static final int INSN
The type of InsnNode instructions.

另请参见:
常量字段值

INT_INSN

public static final int INT_INSN
The type of IntInsnNode instructions.

另请参见:
常量字段值

VAR_INSN

public static final int VAR_INSN
The type of VarInsnNode instructions.

另请参见:
常量字段值

TYPE_INSN

public static final int TYPE_INSN
The type of TypeInsnNode instructions.

另请参见:
常量字段值

FIELD_INSN

public static final int FIELD_INSN
The type of FieldInsnNode instructions.

另请参见:
常量字段值

METHOD_INSN

public static final int METHOD_INSN
The type of MethodInsnNode instructions.

另请参见:
常量字段值

JUMP_INSN

public static final int JUMP_INSN
The type of JumpInsnNode instructions.

另请参见:
常量字段值

LABEL

public static final int LABEL
The type of LabelNode "instructions".

另请参见:
常量字段值

LDC_INSN

public static final int LDC_INSN
The type of LdcInsnNode instructions.

另请参见:
常量字段值

IINC_INSN

public static final int IINC_INSN
The type of IincInsnNode instructions.

另请参见:
常量字段值

TABLESWITCH_INSN

public static final int TABLESWITCH_INSN
The type of TableSwitchInsnNode instructions.

另请参见:
常量字段值

LOOKUPSWITCH_INSN

public static final int LOOKUPSWITCH_INSN
The type of LookupSwitchInsnNode instructions.

另请参见:
常量字段值

MULTIANEWARRAY_INSN

public static final int MULTIANEWARRAY_INSN
The type of MultiANewArrayInsnNode instructions.

另请参见:
常量字段值

FRAME

public static final int FRAME
The type of FrameNode "instructions".

另请参见:
常量字段值

LINE

public static final int LINE
The type of LineNumberNode "instructions".

另请参见:
常量字段值

opcode

protected int opcode
The opcode of this instruction.

构造方法详细信息

AbstractInsnNode

protected AbstractInsnNode(int opcode)
Constructs a new AbstractInsnNode.

参数:
opcode - the opcode of the instruction to be constructed.
方法详细信息

getOpcode

public int getOpcode()
Returns the opcode of this instruction.

返回:
the opcode of this instruction.

getType

public abstract int getType()
Returns the type of this instruction.

返回:
the type of this instruction, i.e. one the constants defined in this class.

getPrevious

public AbstractInsnNode getPrevious()
Returns the previous instruction in the list to which this instruction belongs, if any.

返回:
the previous instruction in the list to which this instruction belongs, if any. May be null.

getNext

public AbstractInsnNode getNext()
Returns the next instruction in the list to which this instruction belongs, if any.

返回:
the next instruction in the list to which this instruction belongs, if any. May be null.

accept

public abstract void accept(MethodVisitor cv)
Makes the given code visitor visit this instruction.

参数:
cv - a code visitor.

clone

public abstract AbstractInsnNode clone(Map labels)
Returns a copy of this instruction.

参数:
labels - a map from LabelNodes to cloned LabelNodes.
返回:
a copy of this instruction. The returned instruction does not belong to any InsnList.


Copyright © 2013. All Rights Reserved.