- すべてのスーパー・インタフェース:
AttributePREVIEW<RecordAttributePREVIEW>,ClassElementPREVIEW,ClassFileElementPREVIEW,WritableElementPREVIEW<RecordAttributePREVIEW>
public sealed interface RecordAttribute extends AttributePREVIEW<RecordAttributePREVIEW>, ClassElementPREVIEW
RecordAttributeは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
Record属性4.7.30をモデル化します。この属性はクラスに表示され、このクラスがレコード・クラスであることを示します。 ClassModelPREVIEWの要素をトラバースするときに、ClassElementPREVIEWとして提供されます。
この属性は、特定のロケーションにある複数のインスタンスを許可しません。 属性の後続の出現は、属性要素の作成時または変換時に優先されます。
この属性は、Java SE Platformバージョン16で導入されました。
- 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明このレコード・クラスのコンポーネントを返します。static RecordAttributePREVIEWof(RecordComponentInfoPREVIEW... components) Record属性を返します。static RecordAttributePREVIEWof(List<RecordComponentInfoPREVIEW> components) Record属性を返します。インタフェースjava.lang.classfile.AttributePREVIEWで宣言されたメソッド
attributeMapper, attributeNameインタフェースjava.lang.classfile.WritableElementPREVIEWで宣言されたメソッド
writeTo
-
メソッドの詳細
-
components
-
of
static RecordAttributePREVIEW of(List<RecordComponentInfoPREVIEW> components) Record属性を返します。- パラメータ:
components- レコード・コンポーネント- 戻り値:
Record属性
-
of
static RecordAttributePREVIEW of(RecordComponentInfoPREVIEW... components) Record属性を返します。- パラメータ:
components- レコード・コンポーネント- 戻り値:
Record属性
-
RecordAttributeを使用できます。