Class LineNumberTableConverter

    • Field Detail

      • _offset2LineNo

        private final int[] _offset2LineNo
      • _maxOffset

        private final int _maxOffset
    • Method Detail

      • getLineForOffset

        public int getLineForOffset​(int offset)
        Description copied from interface: OffsetToLineNumberConverter
        Given a raw bytecode offset number, returns the corresponding Java line number. If there is no exact match for 'offset', returns the previous exact-match line number.
        Specified by:
        getLineForOffset in interface OffsetToLineNumberConverter
        Parameters:
        offset - a raw bytecode offset
        Returns:
        the corresponding Java source code line number