public class MethodUsage extends java.lang.Object implements TypeParametrized
Constructor and Description |
---|
MethodUsage(MethodDeclaration declaration) |
MethodUsage(MethodDeclaration declaration,
java.util.List<Type> paramTypes,
Type returnType) |
Modifier and Type | Method and Description |
---|---|
ReferenceTypeDeclaration |
declaringType() |
MethodDeclaration |
getDeclaration() |
java.lang.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.
|
java.util.List<Type> |
getParamTypes() |
java.lang.String |
getQualifiedSignature() |
MethodUsage |
replaceParamType(int i,
Type replaced) |
MethodUsage |
replaceReturnType(Type returnType) |
MethodUsage |
replaceTypeParameter(TypeParameterDeclaration typeParameter,
Type type) |
Type |
returnType() |
java.lang.String |
toString() |
TypeParametersMap |
typeParametersMap() |
public MethodUsage(MethodDeclaration declaration)
public MethodUsage(MethodDeclaration declaration, java.util.List<Type> paramTypes, Type returnType)
public java.lang.String toString()
toString
in class java.lang.Object
public MethodDeclaration getDeclaration()
public java.lang.String getName()
public ReferenceTypeDeclaration declaringType()
public Type returnType()
public java.util.List<Type> getParamTypes()
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 java.lang.String getQualifiedSignature()