インタフェースAnnotationValue.OfEnum

すべてのスーパー・インタフェース:
AnnotationValuePREVIEW, ClassFileElementPREVIEW, WritableElementPREVIEW<AnnotationValuePREVIEW>
含まれているインタフェース:
AnnotationValuePREVIEW

public static sealed interface AnnotationValue.OfEnum extends AnnotationValuePREVIEW
OfEnumは、JavaプラットフォームのプレビューAPIです。
プレビュー機能が有効な場合のみ、プログラムでOfEnumを使用できます。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
enum-valued要素をモデル化します
導入されたバージョン:
22
  • メソッドの詳細

    • className

      Utf8EntryPREVIEW className()
      列挙クラス名を返します。
      戻り値:
      列挙クラス名
    • classSymbol

      default ClassDesc classSymbol()
      列挙クラス記号を返します。
      戻り値:
      列挙クラス・シンボル
    • constantName

      Utf8EntryPREVIEW constantName()
      列挙定数名を返します。
      戻り値:
      列挙定数名