インタフェースLineNumberTableAttribute
- すべてのスーパー・インタフェース:
AttributePREVIEW<LineNumberTableAttributePREVIEW>,ClassFileElementPREVIEW,WritableElementPREVIEW<LineNumberTableAttributePREVIEW>
public sealed interface LineNumberTableAttribute extends AttributePREVIEW<LineNumberTableAttributePREVIEW>
LineNumberTableAttributeは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
Code属性に指定できるLineNumberTable属性4.7.12をモデル化し、索引間のマッピングをコード表およびソース・ファイル内の行番号に記録します。 ClassFile.LineNumbersOptionPREVIEWオプションの設定に従って、CodeModelPREVIEWの要素をトラバースするときにLineNumberPREVIEWとして提供されます。
この属性は、特定のロケーションにある複数のインスタンスを許可します。
- 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明ソース行番号へのバイトコード・オフセットをマッピングする表を返します。of(List<LineNumberInfoPREVIEW> lines) LineNumberTable属性を返します。インタフェースjava.lang.classfile.AttributePREVIEWで宣言されたメソッド
attributeMapper, attributeNameインタフェースjava.lang.classfile.WritableElementPREVIEWで宣言されたメソッド
writeTo
-
メソッドの詳細
-
lineNumbers
List<LineNumberInfoPREVIEW> lineNumbers()ソース行番号へのバイトコード・オフセットをマッピングする表を返します。- 戻り値:
- ソース行番号へのバイトコード・オフセットをマッピングする表
-
of
static LineNumberTableAttributePREVIEW of(List<LineNumberInfoPREVIEW> lines) LineNumberTable属性を返します。- パラメータ:
lines- 行番号の説明- 戻り値:
LineNumberTable属性
-
LineNumberTableAttributeを使用できます。