public class MethodTypeSignature extends HierarchicalTypeSignature
| Constructor | Description |
|---|---|
MethodTypeSignature(List<TypeParameter> typeParameters,
List<TypeSignature> paramTypes,
TypeSignature resultType,
List<ClassRefOrTypeVariableSignature> throwsSignatures) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object obj) |
|
void |
getAllReferencedClassNames(Set<String> classNameListOut) |
Get the names of all classes referenced in the type signature
|
List<TypeSignature> |
getParameterTypeSignatures() |
Get the type signatures of the method parameters.
|
TypeSignature |
getResultType() |
Get the result type for the method.
|
List<ClassRefOrTypeVariableSignature> |
getThrowsSignatures() |
Get the throws type(s) for the method.
|
List<TypeParameter> |
getTypeParameters() |
Get the type parameters for the method.
|
int |
hashCode() |
|
static MethodTypeSignature |
parse(ClassInfo classInfo,
String typeDescriptor) |
Parse a method signature.
|
static MethodTypeSignature |
parse(String typeDescriptor) |
Parse a method signature (ignores class context, i.e.
|
String |
toString() |
public MethodTypeSignature(List<TypeParameter> typeParameters, List<TypeSignature> paramTypes, TypeSignature resultType, List<ClassRefOrTypeVariableSignature> throwsSignatures)
typeParameters - The type parameters for the method.paramTypes - The parameter types for the method.resultType - The result type for the method.throwsSignatures - The throws signatures for the method.public List<TypeParameter> getTypeParameters()
public List<TypeSignature> getParameterTypeSignatures()
TypeSignature parsed type objects.public TypeSignature getResultType()
TypeSignature parsed type object.public List<ClassRefOrTypeVariableSignature> getThrowsSignatures()
TypeSignature parsed type objects.public void getAllReferencedClassNames(Set<String> classNameListOut)
HierarchicalTypeSignaturegetAllReferencedClassNames in class HierarchicalTypeSignatureclassNameListOut - The set to store class names in.public static MethodTypeSignature parse(String typeDescriptor)
typeDescriptor - The low-level internal method type descriptor or type signature to parse.public static MethodTypeSignature parse(ClassInfo classInfo, String typeDescriptor)
classInfo - The ClassInfo of the containing class.typeDescriptor - The type descriptor of the method.Copyright © 2018. All rights reserved.