类 BranchInstruction

java.lang.Object
proguard.classfile.instruction.Instruction
proguard.classfile.instruction.BranchInstruction

public class BranchInstruction extends Instruction
This interface describes an instruction that branches to a given offset in the code.
  • 字段详细资料

    • branchOffset

      public int branchOffset
  • 构造器详细资料

    • BranchInstruction

      public BranchInstruction()
      Creates an uninitialized BranchInstruction.
    • BranchInstruction

      public BranchInstruction(byte opcode, int branchOffset)
      Creates a BranchInstruction with the given branch offset. The branch offset is relative to this instruction's offset.
  • 方法详细资料

    • copy

      public BranchInstruction copy(BranchInstruction branchInstruction)
      Copies the given instruction into this instruction.
      参数:
      branchInstruction - the instruction to be copied.
      返回:
      this instruction.
    • canonicalOpcode

      public byte canonicalOpcode()
      从类复制的说明: Instruction
      Returns the canonical opcode of this instruction, i.e. typically the opcode whose extension has been removed.
      覆盖:
      canonicalOpcode 在类中 Instruction
    • shrink

      public Instruction shrink()
      从类复制的说明: Instruction
      Shrinks this instruction to its shortest possible form.
      指定者:
      shrink 在类中 Instruction
      返回:
      this 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
    • toString

      public String toString(int offset)
      从类复制的说明: Instruction
      Returns a description of the instruction, at the given offset.
      覆盖:
      toString 在类中 Instruction
    • toString

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

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

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