Class BranchHandle

    • Method Detail

      • getPosition

        public int getPosition()
        Description copied from class: InstructionHandle
        Gets the position.
        Overrides:
        getPosition in class InstructionHandle
        Returns:
        The position, the byte code offset of the contained instruction. This is accurate only after InstructionList.setPositions() has been called.
      • updatePosition

        protected int updatePosition​(int offset,
                                     int maxOffset)
        Description copied from class: InstructionHandle
        Called by InstructionList.setPositions when setting the position for every instruction. In the presence of variable length instructions 'setPositions()' performs multiple passes over the instruction list to calculate the correct (byte) positions and offsets by calling this function.
        Overrides:
        updatePosition in class InstructionHandle
        Parameters:
        offset - additional offset caused by preceding (variable length) instructions.
        maxOffset - The maximum offset that may be caused by these instructions.
        Returns:
        additional offset caused by possible change of this instruction's length.