インタフェースRecordComponentInfo

すべてのスーパー・インタフェース:
AttributedElement, ClassFileElement

public sealed interface RecordComponentInfo extends AttributedElement
RecordAttributeの単一のレコード・コンポーネントをモデル化します。

SignatureAttributeRuntimeVisibleAnnotationsAttributeRuntimeInvisibleAnnotationsAttributeRuntimeVisibleTypeAnnotationsAttributeおよびRuntimeInvisibleTypeAnnotationsAttributeは、レコード・コンポーネントに存在する可能性のある唯一の事前定義済属性です。

Java Virtual Machine仕様を参照してください:
4.7.30 Record属性
導入されたバージョン:
24
関連項目:
  • メソッドの詳細

    • name

      Utf8Entry name()
      このコンポーネントの名前を返します。
      戻り値:
      このコンポーネントの名前
      関連項目:
    • descriptor

      Utf8Entry descriptor()
      このコンポーネントのフィールド記述子文字列を返します。
      APIのノート:
      レコード・コンポーネントには汎用型を指定できます。この情報は、このコンポーネントのSignature属性に格納されます。
      戻り値:
      このコンポーネントのフィールド記述子文字列
      関連項目:
    • descriptorSymbol

      default ClassDesc descriptorSymbol()
      このコンポーネントのシンボリック・フィールド記述子を返します。
      APIのノート:
      レコード・コンポーネントには汎用型を指定できます。この情報は、このコンポーネントのSignature属性に格納されます。
      戻り値:
      このコンポーネントのシンボリック・フィールド記述子
      関連項目:
    • of

      static RecordComponentInfo of(Utf8Entry name, Utf8Entry descriptor, List<Attribute<?>> attributes)
      レコード・コンポーネントの説明を返します。
      パラメータ:
      name - コンポーネントの名前
      descriptor - コンポーネント・フィールド記述子文字列
      attributes - コンポーネント属性
      戻り値:
      レコード・コンポーネントの説明
    • of

      static RecordComponentInfo of(Utf8Entry name, Utf8Entry descriptor, Attribute<?>... attributes)
      レコード・コンポーネントの説明を返します。
      パラメータ:
      name - コンポーネントの名前
      descriptor - コンポーネント・フィールド記述子文字列
      attributes - コンポーネント属性
      戻り値:
      レコード・コンポーネントの説明
    • of

      static RecordComponentInfo of(String name, ClassDesc descriptor, List<Attribute<?>> attributes)
      レコード・コンポーネントの説明を返します。
      パラメータ:
      name - コンポーネントの名前
      descriptor - コンポーネント・シンボリック・フィールド記述子
      attributes - コンポーネント属性
      戻り値:
      レコード・コンポーネントの説明
    • of

      static RecordComponentInfo of(String name, ClassDesc descriptor, Attribute<?>... attributes)
      レコード・コンポーネントの説明を返します。
      パラメータ:
      name - コンポーネントの名前
      descriptor - コンポーネント・シンボリック・フィールド記述子
      attributes - コンポーネント属性
      戻り値:
      レコード・コンポーネントの説明