インタフェースRecordAttribute
- すべてのスーパー・インタフェース:
Attribute<RecordAttribute>,ClassElement,ClassFileElement
public sealed interface RecordAttribute extends Attribute<RecordAttribute>, ClassElement
Record属性(JVMS 4.7.30)をモデル化します。これは、このクラスがレコード・クラスおよびレコード・コンポーネントであることを示します。
この属性はクラスにのみ表示され、クラス内の「複数のインスタンス」は許可されません。 「定数プール」へのデータ依存性があります。
この属性は、Java SE Platformバージョン16のメジャー・バージョン60で導入されました。
- Java Virtual Machine仕様を参照してください:
-
4.7.30
Record属性 - 導入されたバージョン:
- 24
- 関連項目:
-
メソッドのサマリー
修飾子と型メソッド説明このレコード・クラスのコンポーネントを返します。static RecordAttributeof(RecordComponentInfo... components) Record属性を返します。static RecordAttributeof(List<RecordComponentInfo> components) Record属性を返します。インタフェースjava.lang.classfile.Attributeで宣言されたメソッド
attributeMapper, attributeName
-
メソッドの詳細
-
components
-
of
static RecordAttribute of(List<RecordComponentInfo> components) Record属性を返します。- パラメータ:
components- レコード・コンポーネント- 戻り値:
Record属性
-
of
static RecordAttribute of(RecordComponentInfo... components) Record属性を返します。- パラメータ:
components- レコード・コンポーネント- 戻り値:
Record属性
-