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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    a do-nothing offset-to-line-number converter which always returns UNKNOWN_LINE_NUMBER
    static final int
    indicates that the line number is unknown
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getLineForOffset(int offset)
    Given a raw bytecode offset number, returns the corresponding Java line number.
  • Field Details

  • Method Details

    • 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