- All Known Implementing Classes:
SignaturesImpl.MethodSignatureImpl
Models the generic signature of a method, as defined by .
-
Method Summary
Modifier and TypeMethodDescriptionReturns the signatures of the parameters of this method.static MethodSignatureof(MethodTypeDesc methodDescriptor) static MethodSignatureof(List<Signature.TypeParam> typeParameters, List<Signature.ThrowableSig> exceptions, Signature result, Signature... arguments) static MethodSignaturestatic MethodSignatureParses a raw method signature string into a MethodSignatureresult()Returns the signatures of the return value of this method.Returns the raw signature string.Returns the signatures of the exceptions thrown by this method.Returns the type parameters of this method.
-
Method Details
-
typeParameters
List<Signature.TypeParam> typeParameters()Returns the type parameters of this method.- Returns:
- the type parameters of this method
-
arguments
Returns the signatures of the parameters of this method.- Returns:
- the signatures of the parameters of this method
-
result
Signature result()Returns the signatures of the return value of this method.- Returns:
- the signatures of the return value of this method
-
throwableSignatures
List<Signature.ThrowableSig> throwableSignatures()Returns the signatures of the exceptions thrown by this method.- Returns:
- the signatures of the exceptions thrown by this method
-
signatureString
String signatureString()Returns the raw signature string.- Returns:
- the raw signature string
-
of
- Parameters:
methodDescriptor- the method descriptor- Returns:
- method signature for a raw (no generic information) method descriptor
-
of
- Parameters:
result- signature for the return typearguments- signatures for the method arguments- Returns:
- method signature
-
of
static MethodSignature of(List<Signature.TypeParam> typeParameters, List<Signature.ThrowableSig> exceptions, Signature result, Signature... arguments) - Parameters:
typeParameters- signatures for the type parametersexceptions- sigantures for the exceptionsresult- signature for the return typearguments- signatures for the method arguments- Returns:
- method signature
-
parseFrom
Parses a raw method signature string into a MethodSignature- Parameters:
methodSignature- the raw method signature string- Returns:
- method signature
-