public class MethodUsage extends Object implements ResolvedTypeParametrized
Constructor and Description |
---|
MethodUsage(ResolvedMethodDeclaration declaration) |
MethodUsage(ResolvedMethodDeclaration declaration,
List<ResolvedType> paramTypes,
ResolvedType returnType) |
MethodUsage(ResolvedMethodDeclaration declaration,
List<ResolvedType> paramTypes,
ResolvedType returnType,
List<ResolvedType> exceptionTypes) |
public MethodUsage(ResolvedMethodDeclaration declaration)
public MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, ResolvedType returnType)
public MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, ResolvedType returnType, List<ResolvedType> exceptionTypes)
public ResolvedMethodDeclaration getDeclaration()
public String getName()
public ResolvedReferenceTypeDeclaration declaringType()
public ResolvedType returnType()
public List<ResolvedType> getParamTypes()
public MethodUsage replaceParamType(int i, ResolvedType replaced)
public MethodUsage replaceExceptionType(int i, ResolvedType replaced)
public MethodUsage replaceReturnType(ResolvedType returnType)
public int getNoParams()
public ResolvedType getParamType(int i)
public MethodUsage replaceTypeParameter(ResolvedTypeParameterDeclaration typeParameter, ResolvedType type)
public ResolvedTypeParametersMap typeParametersMap()
typeParametersMap
in interface ResolvedTypeParametrized
public String getQualifiedSignature()
public String getSignature()
public String getErasedSignature()
public List<ResolvedType> exceptionTypes()
public boolean isSameSignature(MethodUsage otherMethodUsage)
public boolean isSubSignature(MethodUsage otherMethodUsage)
public boolean isReturnTypeSubstituable(MethodUsage otherMethodUsage)
Copyright © 2007–2024. All rights reserved.