类 AbstractInsnNode

java.lang.Object
org.beetl.ow2.asm.tree.AbstractInsnNode
直接已知子类:
FieldInsnNode, FrameNode, IincInsnNode, InsnNode, IntInsnNode, InvokeDynamicInsnNode, 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
  • 字段详细资料

  • 构造器详细资料

    • 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.
    • acceptAnnotations

      protected final void acceptAnnotations(MethodVisitor mv)
      Makes the given visitor visit the annotations of this instruction.
      参数:
      mv - a method visitor.
    • clone

      public abstract AbstractInsnNode clone(Map<LabelNode,LabelNode> 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.
    • cloneAnnotations

      protected final AbstractInsnNode cloneAnnotations(AbstractInsnNode insn)
      Clones the annotations of the given instruction into this instruction.
      参数:
      insn - the srccode instruction.
      返回:
      this instruction.