Interface OffsetToLineNumberConverter
-
- All Known Implementing Classes:
LineNumberTableConverter
public interface OffsetToLineNumberConverterAn 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 static OffsetToLineNumberConverterNOOP_CONVERTERa do-nothing offset-to-line-number converter which always returnsUNKNOWN_LINE_NUMBERstatic intUNKNOWN_LINE_NUMBERindicates that the line number is unknown
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetLineForOffset(int offset)Given a raw bytecode offset number, returns the corresponding Java line number.
-
-
-
Field Detail
-
UNKNOWN_LINE_NUMBER
static final int UNKNOWN_LINE_NUMBER
indicates that the line number is unknown- See Also:
- Constant Field Values
-
NOOP_CONVERTER
static final OffsetToLineNumberConverter NOOP_CONVERTER
a do-nothing offset-to-line-number converter which always returnsUNKNOWN_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
-
-