public abstract class EntityWithParametersStatement extends AbstractStatement
AbstractStatement.Executer| Modifier and Type | Field and Description |
|---|---|
protected Annotation[] |
annotations |
protected Annotation[][] |
parameterAnnotations |
protected List<VariableReference> |
parameters |
assertions, comment, logger, retval, tc| Modifier | Constructor and Description |
|---|---|
protected |
EntityWithParametersStatement(TestCase tc,
Type type)
Constructor needed for Functional Mocks where the number of input parameters
might vary during the search, ie not constant, and starts with 0
|
protected |
EntityWithParametersStatement(TestCase tc,
Type type,
List<VariableReference> parameters,
Annotation[] annotations,
Annotation[][] parameterAnnotations) |
protected |
EntityWithParametersStatement(TestCase tc,
VariableReference retval)
Constructor needed for Functional Mocks where the number of input parameters
might vary during the search, ie not constant, and starts with 0
|
protected |
EntityWithParametersStatement(TestCase tc,
VariableReference retval,
List<VariableReference> parameters,
Annotation[] annotations,
Annotation[][] parameterAnnotations) |
| Modifier and Type | Method and Description |
|---|---|
protected Constraints |
getConstraints() |
abstract String |
getDeclaringClassName() |
abstract String |
getDescriptor() |
abstract String |
getMethodName() |
int |
getNumParameters()
Retrieve the number of parameters of this statement
|
protected int |
getNumParametersOfType(Class<?> clazz) |
List<VariableReference> |
getParameterReferences() |
List<VariableReference> |
getUniqueVariableReferences()
getUniqueVariableReferences
|
Set<VariableReference> |
getVariableReferences()
getVariableReferences
|
boolean |
isBounded(VariableReference var)
Check if the given var is bounded in this method/constructor as input parameter
|
protected boolean |
mutateParameter(TestCase test,
int numParameter) |
void |
replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
void |
replaceParameterReference(VariableReference var,
int numParameter)
replaceParameterReference
|
addAssertion, addComment, changeClassLoader, clone, clone, copyAssertions, exceptionHandler, getAssertionCode, getAssertionReferences, getAssertions, getCode, getCode, getComment, getDeclaredExceptions, getExceptionClass, getPosition, getReturnClass, getReturnType, getReturnValue, getTestCase, hasAssertions, isAccessible, isDeclaredException, isReflectionStatement, isValid, mutate, negate, references, removeAssertion, removeAssertions, setAssertions, setRetvalequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopy, equals, execute, getAccessibleObject, hashCode, isAssignmentStatement, sameprotected final List<VariableReference> parameters
protected final Annotation[][] parameterAnnotations
protected final Annotation[] annotations
protected EntityWithParametersStatement(TestCase tc, Type type, List<VariableReference> parameters, Annotation[] annotations, Annotation[][] parameterAnnotations) throws IllegalArgumentException
IllegalArgumentExceptionprotected EntityWithParametersStatement(TestCase tc, VariableReference retval, List<VariableReference> parameters, Annotation[] annotations, Annotation[][] parameterAnnotations) throws IllegalArgumentException
IllegalArgumentExceptionprotected EntityWithParametersStatement(TestCase tc, VariableReference retval)
tc - retval - public List<VariableReference> getParameterReferences()
public void replace(VariableReference var1, VariableReference var2)
var1 - The old variablevar2 - The new variablepublic List<VariableReference> getUniqueVariableReferences()
StatementgetUniqueVariableReferences
List object.public Set<VariableReference> getVariableReferences()
StatementgetVariableReferences
Set object.public int getNumParameters()
StatementgetNumParameters in interface StatementgetNumParameters in class AbstractStatementpublic void replaceParameterReference(VariableReference var, int numParameter) throws IllegalArgumentException
replaceParameterReference
var - a VariableReference object.numParameter - a int.IllegalArgumentExceptionpublic boolean isBounded(VariableReference var) throws IllegalArgumentException
var - IllegalArgumentExceptionprotected int getNumParametersOfType(Class<?> clazz)
protected Constraints getConstraints()
protected boolean mutateParameter(TestCase test, int numParameter)
public abstract String getDeclaringClassName()
public abstract String getMethodName()
public abstract String getDescriptor()
Copyright © 2010–2017 EvoSuite. All rights reserved.