Interface AnnotationValue.OfEnum

All Superinterfaces:
AnnotationValuePREVIEW
Enclosing interface:
AnnotationValuePREVIEW

public static sealed interface AnnotationValue.OfEnum extends AnnotationValuePREVIEW
OfEnum is a preview API of the Java platform.
Programs can only use OfEnum when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models an enum value of an element-value pair. The tagPREVIEW of this value is 101.
Since:
22
  • Method Details

    • className

      Utf8EntryPREVIEW className()
      Returns the enum class descriptor string.
      Returns:
      the enum class descriptor string
    • classSymbol

      default ClassDesc classSymbol()
      Returns the enum class descriptor.
      Returns:
      the enum class descriptor
    • constantName

      Utf8EntryPREVIEW constantName()
      Returns the enum constant name.
      Returns:
      the enum constant name