Interface AnnotationValue.OfClass

All Superinterfaces:
AnnotationValuePREVIEW
Enclosing interface:
AnnotationValuePREVIEW

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

    • className

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

      default ClassDesc classSymbol()
      Returns the class descriptor.
      Returns:
      the class descriptor