- All Known Implementing Classes:
SignaturesImpl.ClassSignatureImpl
Models the generic signature of a class file, as defined by .
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassSignatureof(List<Signature.TypeParam> typeParameters, Signature.RefTypeSig superclassSignature, Signature.RefTypeSig... superinterfaceSignatures) static ClassSignatureof(Signature.RefTypeSig superclassSignature, Signature.RefTypeSig... superinterfaceSignatures) static ClassSignatureParses a raw class signature string into a SignatureReturns the raw signature string.Returns the instantiation of the superclass in this signature.Returns the instantiation of the interfaces in this signature.Returns the type parameters of this class.
-
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 superclasssuperinterfaceSignatures- the interfaces- Returns:
- class signature
-
of
static ClassSignature of(List<Signature.TypeParam> typeParameters, Signature.RefTypeSig superclassSignature, Signature.RefTypeSig... superinterfaceSignatures) - Parameters:
typeParameters- the type parameterssuperclassSignature- the superclasssuperinterfaceSignatures- the interfaces- Returns:
- class signature
-
parseFrom
Parses a raw class signature string into a Signature- Parameters:
classSignature- the raw class signature string- Returns:
- class signature
-