类 CodeAttributeEditor.Label

java.lang.Object
proguard.classfile.instruction.Instruction
proguard.classfile.editor.CodeAttributeEditor.Label
封闭类:
CodeAttributeEditor

public static class CodeAttributeEditor.Label extends Instruction
This pseudo-instruction represents a label that marks an instruction offset, for use in the context of the code attribute editor only.
  • 字段详细资料

    • identifier

      protected final int identifier
  • 构造器详细资料

    • Label

      public Label(int identifier)
      Creates a new Label.
      参数:
      identifier - an identifier that can be chosen freely.
  • 方法详细资料

    • offset

      public int offset()
      Returns the offset that can then be used as a branch target in other replacement instructions.
    • shrink

      public Instruction shrink()
      从类复制的说明: Instruction
      Shrinks this instruction to its shortest possible form.
      指定者:
      shrink 在类中 Instruction
      返回:
      this instruction.
    • write

      public void write(byte[] code, int offset)
      从类复制的说明: Instruction
      Writes the Instruction at the given offset in the given code array.
      覆盖:
      write 在类中 Instruction
    • readInfo

      protected void readInfo(byte[] code, int offset)
      从类复制的说明: Instruction
      Reads the data following the instruction opcode.
      指定者:
      readInfo 在类中 Instruction
    • writeInfo

      protected void writeInfo(byte[] code, int offset)
      从类复制的说明: Instruction
      Writes data following the instruction opcode.
      指定者:
      writeInfo 在类中 Instruction
    • length

      public int length(int offset)
      从类复制的说明: Instruction
      Returns the length in bytes of the instruction.
      指定者:
      length 在类中 Instruction
    • accept

      public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, InstructionVisitor instructionVisitor)
      从类复制的说明: Instruction
      Accepts the given visitor.
      指定者:
      accept 在类中 Instruction
    • equals

      public boolean equals(Object o)
      指定者:
      equals 在类中 Instruction
    • hashCode

      public int hashCode()
      指定者:
      hashCode 在类中 Instruction
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object