public class MethodDescriptor extends Object implements Comparable<MethodDescriptor>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
MethodDescriptor(Method method,
GenericClass retvalType) |
MethodDescriptor(String className,
String methodName,
String inputParameterMatchers)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeClassLoader(ClassLoader loader) |
int |
compareTo(MethodDescriptor o) |
Object |
executeMatcher(int i) |
MethodDescriptor |
getCopy() |
int |
getCounter() |
GenericMethod |
getGenericMethodFor(GenericClass clazz) |
String |
getID() |
String |
getInputParameterMatchers() |
Method |
getMethod() |
String |
getMethodName() |
int |
getNumberOfInputParameters() |
GenericClass |
getReturnClass() |
void |
increaseCounter() |
boolean |
shouldBeMocked()
For example, do not mock methods with no return value
|
public MethodDescriptor(Method method, GenericClass retvalType)
method - the one that is going to be mockedretvalType - type of the class the mocked method belongs to. The type might be parameterized (ie generics)@Deprecated public MethodDescriptor(String className, String methodName, String inputParameterMatchers) throws IllegalArgumentException
IllegalArgumentExceptionpublic void changeClassLoader(ClassLoader loader)
public boolean shouldBeMocked()
public MethodDescriptor getCopy()
public int getNumberOfInputParameters()
public Object executeMatcher(int i) throws IllegalArgumentException
IllegalArgumentExceptionpublic GenericMethod getGenericMethodFor(GenericClass clazz) throws ConstructionFailedException
ConstructionFailedExceptionpublic GenericClass getReturnClass()
public Method getMethod()
public String getMethodName()
public String getInputParameterMatchers()
public String getID()
public int getCounter()
public void increaseCounter()
public int compareTo(MethodDescriptor o)
compareTo in interface Comparable<MethodDescriptor>Copyright © 2010–2017 EvoSuite. All rights reserved.