Interface ClassSignature

All Known Implementing Classes:
SignaturesImpl.ClassSignatureImpl

public sealed interface ClassSignature permits SignaturesImpl.ClassSignatureImpl
Models the generic signature of a class file, as defined by .
  • Method Details

    • typeParameters

      List<Signature.TypeParam> typeParameters()
      Returns the type parameters of this class.
      Returns:
      the type parameters of this class
    • superclassSignature

      Signature.RefTypeSig superclassSignature()
      Returns the instantiation of the superclass in this signature.
      Returns:
      the instantiation of the superclass in this signature
    • superinterfaceSignatures

      List<Signature.RefTypeSig> superinterfaceSignatures()
      Returns the instantiation of the interfaces in this signature.
      Returns:
      the instantiation of the interfaces in this signature
    • signatureString

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

      static ClassSignature of(Signature.RefTypeSig superclassSignature, Signature.RefTypeSig... superinterfaceSignatures)
      Parameters:
      superclassSignature - the superclass
      superinterfaceSignatures - the interfaces
      Returns:
      class signature
    • of

      static ClassSignature of(List<Signature.TypeParam> typeParameters, Signature.RefTypeSig superclassSignature, Signature.RefTypeSig... superinterfaceSignatures)
      Parameters:
      typeParameters - the type parameters
      superclassSignature - the superclass
      superinterfaceSignatures - the interfaces
      Returns:
      class signature
    • parseFrom

      static ClassSignature parseFrom(String classSignature)
      Parses a raw class signature string into a Signature
      Parameters:
      classSignature - the raw class signature string
      Returns:
      class signature