Interface Signature.BaseTypeSig

All Superinterfaces:
SignaturePREVIEW
Enclosing interface:
SignaturePREVIEW

public static sealed interface Signature.BaseTypeSig extends SignaturePREVIEW
BaseTypeSig is a preview API of the Java platform.
Programs can only use BaseTypeSig when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models the signature of a primitive type or void
Since:
22
  • Method Details

    • baseType

      char baseType()
      Returns the single-letter descriptor for the base type.
      Returns:
      the single-letter descriptor for the base type
    • of

      static Signature.BaseTypeSigPREVIEW of(ClassDesc classDesc)
      Returns the signature of a primitive type or void.
      Parameters:
      classDesc - a symbolic descriptor for the base type, must correspond to a primitive type
      Returns:
      the signature of a primitive type or void
    • of

      static Signature.BaseTypeSigPREVIEW of(char baseType)
      Returns the signature of a primitive type or void.
      Parameters:
      baseType - the single-letter descriptor for the base type
      Returns:
      the signature of a primitive type or void