インタフェースCompilationIDAttribute
- すべてのスーパー・インタフェース:
AttributePREVIEW<CompilationIDAttributePREVIEW>,ClassElementPREVIEW,ClassFileElementPREVIEW,WritableElementPREVIEW<CompilationIDAttributePREVIEW>
public sealed interface CompilationIDAttribute extends AttributePREVIEW<CompilationIDAttributePREVIEW>, ClassElementPREVIEW
CompilationIDAttributeは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
CompilationID属性(@@@には参照が必要です)をモデル化します。この属性はクラスに表示され、クラスのコンパイル時間を記録できます。 ClassModelPREVIEWの要素をトラバースするときに、ClassElementPREVIEWとして提供されます。
この属性は、特定のロケーションにある複数のインスタンスを許可しません。 属性の後続の出現は、属性要素の作成時または変換時に優先されます。
- 導入されたバージョン:
- 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を使用できます。