Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use LineNumberTableAttribute
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
LineNumberTable
attribute 4.7.12, which can appear
on a Code
attribute, and records the mapping between indexes into
the code table and line numbers in the source file.
Delivered as a java.lang.classfile.instruction.LineNumber
when traversing the
elements of a java.lang.classfile.CodeModel
, according to the setting of the
java.lang.classfile.ClassFile.LineNumbersOption
option.
The attribute permits multiple instances in a given location.
Modifier and Type | Method and Description |
---|---|
public List | Returns: the table mapping bytecode offsets to source line numbersReturns the table mapping bytecode offsets to source line numbers. |
public static LineNumberTableAttribute | Returns: aLineNumberTable attributethe line number descriptions lines)Returns a |
lineNumbers | back to summary |
---|---|
public List Returns the table mapping bytecode offsets to source line numbers.
|
of | back to summary |
---|---|
public static LineNumberTableAttribute of(List<LineNumberInfo> lines) Returns a
|