- All Known Subinterfaces:
Signature.ArrayTypeSig,Signature.BaseTypeSig,Signature.ClassTypeSig,Signature.RefTypeSig,Signature.ThrowableSig,Signature.TypeVarSig
- All Known Implementing Classes:
SignaturesImpl.ArrayTypeSigImpl,SignaturesImpl.BaseTypeSigImpl,SignaturesImpl.ClassTypeSigImpl,SignaturesImpl.TypeVarSigImpl
public sealed interface Signature
permits Signature.RefTypeSig, Signature.ThrowableSig, Signature.BaseTypeSig
Models generic Java type signatures, as defined in .
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceModels the signature of an array type.static interfaceModels the signature of a primitive type or voidstatic interfaceModels the signature of a possibly-parameterized class or interface type.static interfaceModels the signature of a reference type, which may be a class, interface, type variable, or array type.static interfaceModels a signature for a throwable type.static interfaceModels the type argument.static interfaceModels a signature for a type parameter of a generic class or method.static interfaceModels the signature of a type variable. -
Method Summary
-
Method Details
-
signatureString
String signatureString()Returns the raw signature string.- Returns:
- the raw signature string
-
parseFrom
Parses generic Java type signature from raw string- Parameters:
javaTypeSignature- raw Java type signature string- Returns:
- Java type signature
-
of
- Parameters:
classDesc- the symbolic description of the Java type- Returns:
- Java type signature
-