インタフェースRecordComponentInfo

すべてのスーパー・インタフェース:
AttributedElementPREVIEW, ClassFileElementPREVIEW

public sealed interface RecordComponentInfo extends AttributedElementPREVIEW
RecordComponentInfoは、JavaプラットフォームのプレビューAPIです。
プレビュー機能が有効な場合のみ、プログラムでRecordComponentInfoを使用できます。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
RecordAttributePREVIEWの単一のレコード・コンポーネントをモデル化します。
導入されたバージョン:
22
  • メソッドの詳細

    • name

      このコンポーネントの名前を返します。
      戻り値:
      このコンポーネントの名前
    • descriptor

      Utf8EntryPREVIEW descriptor()
      このコンポーネントのフィールド記述子を返します。
      戻り値:
      このコンポーネントのフィールド記述子
    • descriptorSymbol

      default ClassDesc descriptorSymbol()
      このコンポーネントのフィールド記述子をClassDescとして返します。
      戻り値:
      このコンポーネントのフィールド記述子(ClassDesc)
    • of

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

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

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

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