Module java.base

Interface LineNumberTableAttribute

All Superinterfaces:
AttributePREVIEW<LineNumberTableAttributePREVIEW>, ClassFileElementPREVIEW, WritableElementPREVIEW<LineNumberTableAttributePREVIEW>

public sealed interface LineNumberTableAttribute extends AttributePREVIEW<LineNumberTableAttributePREVIEW>
LineNumberTableAttribute is a preview API of the Java platform.
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.
Models the 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 LineNumberPREVIEW when traversing the elements of a CodeModelPREVIEW, according to the setting of the ClassFile.LineNumbersOptionPREVIEW option.

The attribute permits multiple instances in a given location.