类 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
      • toString

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

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

        public boolean equals​(java.lang.Object o)
        指定者:
        equals 在类中 Instruction