public class MethodTypeSignature extends HierarchicalTypeSignature
| Constructor and Description |
|---|
MethodTypeSignature(List<TypeParameter> typeParameters,
List<TypeSignature> paramTypes,
TypeSignature resultType,
List<ClassRefOrTypeVariableSignature> throwsSignatures) |
| Modifier and Type | Method and 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 |
merge(MethodTypeSignature methodTypeSignature,
MethodTypeSignature methodTypeSignatureInternal,
int[] parameterAccessFlagsInternal)
Merge together programmer-view and JDK-internal method type signatures.
|
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() |
String |
toString(List<AnnotationInfo> annotationInfo,
int modifiers,
boolean isConstructor,
String methodName,
boolean isVarArgs,
String[] parameterNames,
int[] parameterAccessFlags,
AnnotationInfo[][] parameterAnnotationInfo)
Get a string representation of the method.
|
public MethodTypeSignature(List<TypeParameter> typeParameters, List<TypeSignature> paramTypes, TypeSignature resultType, List<ClassRefOrTypeVariableSignature> throwsSignatures)
public List<TypeParameter> getTypeParameters()
public List<TypeSignature> getParameterTypeSignatures()
public TypeSignature getResultType()
public List<ClassRefOrTypeVariableSignature> getThrowsSignatures()
public void getAllReferencedClassNames(Set<String> classNameListOut)
HierarchicalTypeSignaturegetAllReferencedClassNames in class HierarchicalTypeSignaturepublic String toString(List<AnnotationInfo> annotationInfo, int modifiers, boolean isConstructor, String methodName, boolean isVarArgs, String[] parameterNames, int[] parameterAccessFlags, AnnotationInfo[][] parameterAnnotationInfo)
"<init>", and private
static class initializer blocks are named "<clinit>".public static MethodTypeSignature merge(MethodTypeSignature methodTypeSignature, MethodTypeSignature methodTypeSignatureInternal, int[] parameterAccessFlagsInternal)
methodTypeSignature - The programmer-view type signature, with type parameters where possible, and without synthetic
parameters.methodTypeSignatureInternal - The JDK-internal type signature, without type parameters, but including synthetic parameters, if
any.parameterAccessFlags - The parameter modifiers for parameters in the JDK-internal type signature.public static MethodTypeSignature parse(String typeDescriptor)
public static MethodTypeSignature parse(ClassInfo classInfo, String typeDescriptor)
Copyright © 2018. All rights reserved.