类 VarInsnNode

java.lang.Object
cn.taketoday.bytecode.tree.AbstractInsnNode
cn.taketoday.bytecode.tree.VarInsnNode

public class VarInsnNode extends AbstractInsnNode
A node that represents a local variable instruction. A local variable instruction is an instruction that loads or stores the value of a local variable.
作者:
Eric Bruneton
  • 字段详细资料

    • var

      public int var
      The operand of this instruction. This operand is the index of a local variable.
  • 构造器详细资料

    • VarInsnNode

      public VarInsnNode(int opcode, int var)
      Constructs a new VarInsnNode.
      参数:
      opcode - the opcode of the local variable instruction to be constructed. This opcode must be ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.
      var - the operand of the instruction to be constructed. This operand is the index of a local variable.
  • 方法详细资料

    • setOpcode

      public void setOpcode(int opcode)
      Sets the opcode of this instruction.
      参数:
      opcode - the new instruction opcode. This opcode must be ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.
    • getType

      public int getType()
      从类复制的说明: AbstractInsnNode
      Returns the type of this instruction.
      指定者:
      getType 在类中 AbstractInsnNode
      返回:
      the type of this instruction, i.e. one the constants defined in this class.
    • accept

      public void accept(MethodVisitor methodVisitor)
      从类复制的说明: AbstractInsnNode
      Makes the given method visitor visit this instruction.
      指定者:
      accept 在类中 AbstractInsnNode
      参数:
      methodVisitor - a method visitor.
    • clone

      public AbstractInsnNode clone(Map<LabelNode,LabelNode> clonedLabels)
      从类复制的说明: AbstractInsnNode
      Returns a copy of this instruction.
      指定者:
      clone 在类中 AbstractInsnNode
      参数:
      clonedLabels - a map from LabelNodes to cloned LabelNodes.
      返回:
      a copy of this instruction. The returned instruction does not belong to any InsnList.