Interface Signature

All Known Subinterfaces:
Signature.ArrayTypeSigPREVIEW, Signature.BaseTypeSigPREVIEW, Signature.ClassTypeSigPREVIEW, Signature.RefTypeSigPREVIEW, Signature.ThrowableSigPREVIEW, Signature.TypeVarSigPREVIEW

Signature is a preview API of the Java platform.
Programs can only use Signature when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models generic Java type signatures, as defined in JVMS 4.7.9.1.
Since:
22
  • Method Details

    • signatureString

      String signatureString()
      Returns the raw signature string.
      Returns:
      the raw signature string
    • parseFrom

      static SignaturePREVIEW parseFrom(String javaTypeSignature)
      Parses generic Java type signature from raw string
      Parameters:
      javaTypeSignature - raw Java type signature string
      Returns:
      Java type signature
    • of

      static SignaturePREVIEW of(ClassDesc classDesc)
      Returns a Java type signature.
      Parameters:
      classDesc - the symbolic description of the Java type
      Returns:
      a Java type signature