public class MethodUsage extends Object implements TypeParametrized
Constructor and Description |
---|
MethodUsage(MethodDeclaration declaration) |
MethodUsage(MethodDeclaration declaration,
List<Type> paramTypes,
Type returnType) |
Modifier and Type | Method and Description |
---|---|
ReferenceTypeDeclaration |
declaringType() |
MethodDeclaration |
getDeclaration() |
String |
getName() |
int |
getNoParams()
Return the number of formal arguments accepted by this method.
|
Type |
getParamType(int i)
Return the type of the formal argument at the given position.
|
List<Type> |
getParamTypes() |
String |
getQualifiedSignature() |
MethodUsage |
replaceParamType(int i,
Type replaced) |
MethodUsage |
replaceReturnType(Type returnType) |
MethodUsage |
replaceTypeParameter(TypeParameterDeclaration typeParameter,
Type type) |
Type |
returnType() |
String |
toString() |
TypeParametersMap |
typeParametersMap() |
public MethodUsage(MethodDeclaration declaration)
public MethodUsage(MethodDeclaration declaration, List<Type> paramTypes, Type returnType)
public MethodDeclaration getDeclaration()
public String getName()
public ReferenceTypeDeclaration declaringType()
public Type returnType()
public MethodUsage replaceParamType(int i, Type replaced)
public MethodUsage replaceReturnType(Type returnType)
public int getNoParams()
public Type getParamType(int i)
public MethodUsage replaceTypeParameter(TypeParameterDeclaration typeParameter, Type type)
public TypeParametersMap typeParametersMap()
typeParametersMap
in interface TypeParametrized
public String getQualifiedSignature()
Copyright © 2016. All rights reserved.