- すべてのスーパー・インタフェース:
AttributePREVIEW<CompilationIDAttributePREVIEW>
,ClassElementPREVIEW
,ClassFileElementPREVIEW
,WritableElementPREVIEW<CompilationIDAttributePREVIEW>
public sealed interface CompilationIDAttribute extends AttributePREVIEW<CompilationIDAttributePREVIEW>, ClassElementPREVIEW
CompilationIDAttribute
は、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
CompilationID
属性(@@@には参照が必要です)をモデル化します。この属性はクラスに表示され、クラスのコンパイル時間を記録できます。 ClassModel
PREVIEWの要素をトラバースするときに、ClassElement
PREVIEWとして提供されます。
この属性は、特定のロケーションにある複数のインスタンスを許可しません。 属性の後続の出現は、属性要素の作成時または変換時に優先されます。
- 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明コンパイルIDを返します。CompilationID
属性を返します。CompilationID
属性を返します。インタフェースjava.lang.classfile.AttributePREVIEWで宣言されたメソッド
attributeMapper, attributeName
インタフェースjava.lang.classfile.WritableElementPREVIEWで宣言されたメソッド
writeTo
-
メソッドの詳細
-
compilationId
コンパイルIDを返します。 コンパイルIDは、クラス・ファイルが生成されたときのSystem.currentTimeMillis()
の値です。- 戻り値:
- コンパイルID
-
of
static CompilationIDAttributePREVIEW of(Utf8EntryPREVIEW id) CompilationID
属性を返します。- パラメータ:
id
- コンパイルID- 戻り値:
CompilationID
属性
-
of
static CompilationIDAttributePREVIEW of(String id) CompilationID
属性を返します。- パラメータ:
id
- コンパイルID- 戻り値:
CompilationID
属性
-
CompilationIDAttribute
を使用できます。