Interface OffsetToLineNumberConverter

  • All Known Implementing Classes:
    LineNumberTableConverter

    public interface OffsetToLineNumberConverter
    An instance capable of converting from a raw bytecode offset number to a Java source code line number.
    • Method Detail

      • getLineForOffset

        int getLineForOffset​(int offset)
        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.
        Parameters:
        offset - a raw bytecode offset
        Returns:
        the corresponding Java source code line number