| Modifier and Type | Field and Description |
|---|---|
protected VariableReference |
SameAssertion.dest |
protected VariableReference |
EqualsAssertion.dest |
protected VariableReference |
CompareAssertion.dest |
protected VariableReference |
Assertion.source
Variable on which the assertion is made
|
protected VariableReference |
PrimitiveTraceEntry.var |
protected VariableReference |
ArrayTraceEntry.var |
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
SameAssertion.getDest()
Getter for the field
dest. |
VariableReference |
EqualsAssertion.getDest()
Getter for the field
dest. |
VariableReference |
CompareAssertion.getDest()
Getter for the field
dest. |
VariableReference |
Assertion.getSource()
Getter for source variable
|
| Modifier and Type | Method and Description |
|---|---|
Set<VariableReference> |
SameAssertion.getReferencedVariables()
Return all the variables that are part of this assertion
|
Set<VariableReference> |
EqualsAssertion.getReferencedVariables()
Return all the variables that are part of this assertion
|
Set<VariableReference> |
CompareAssertion.getReferencedVariables()
Return all the variables that are part of this assertion
|
Set<VariableReference> |
Assertion.getReferencedVariables()
Return all the variables that are part of this assertion
|
| Modifier and Type | Method and Description |
|---|---|
void |
OutputTrace.addEntry(int position,
VariableReference var,
T entry)
Insert a new entry into the trace
|
void |
SameTraceEntry.addEntry(VariableReference other,
boolean value)
addEntry
|
void |
ComparisonTraceEntry.addEntry(VariableReference other,
boolean value)
addEntry
|
boolean |
OutputTrace.containsEntry(int position,
VariableReference var)
Get the current entry at the given position
|
T |
OutputTrace.getEntry(int position,
VariableReference var)
Get the current entry at the given position
|
protected boolean |
MutationAssertionGenerator.isUsedAsCallee(TestCase test,
VariableReference var)
Returns true if the variable var is used as callee later on in the test
|
void |
SameAssertion.setDest(VariableReference dest)
Setter for the field
dest. |
void |
EqualsAssertion.setDest(VariableReference dest)
Setter for the field
dest. |
void |
CompareAssertion.setDest(VariableReference dest)
Setter for the field
dest. |
void |
Assertion.setSource(VariableReference var) |
protected void |
SameTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
PrimitiveTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
PrimitiveFieldTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
NullTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
InspectorTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
ComparisonTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected abstract void |
AssertionTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
protected void |
ArrayTraceObserver.visit(Statement statement,
Scope scope,
VariableReference var)
visit
|
| Constructor and Description |
|---|
ArrayTraceEntry(VariableReference var,
Object[] value) |
ComparisonTraceEntry(VariableReference var)
Constructor for ComparisonTraceEntry.
|
InspectorAssertion(Inspector inspector,
Statement statement,
VariableReference source,
Object value) |
InspectorTraceEntry(VariableReference var)
Constructor for InspectorTraceEntry.
|
NullTraceEntry(VariableReference var,
boolean result)
Constructor for NullTraceEntry.
|
PrimitiveFieldTraceEntry(VariableReference var)
Constructor for PrimitiveFieldTraceEntry.
|
PrimitiveTraceEntry(VariableReference var,
Object value)
Constructor for PrimitiveTraceEntry.
|
SameTraceEntry(VariableReference var)
Constructor for SameTraceEntry.
|
| Modifier and Type | Method and Description |
|---|---|
protected VariableReference |
ContractViolation.getVariable(int num) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Contract.Pair<VariableReference>> |
Contract.getAllVariablePairs(Scope scope) |
protected Collection<VariableReference> |
Contract.getAllVariables(Scope scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
UndeclaredExceptionContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
ToStringReturnsNormallyContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
NullPointerExceptionContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
JUnitTheoryContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
JCrasherExceptionContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
HashCodeReturnsNormallyContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
EqualsSymmetricContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
EqualsNullContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
EqualsHashcodeContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
void |
EqualsContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
abstract void |
Contract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception)
Add an assertion to the statement based on the contract.
|
void |
AssertionErrorContract.addAssertionAndComments(Statement statement,
List<VariableReference> variables,
Throwable exception) |
| Constructor and Description |
|---|
ContractViolation(Contract contract,
Statement statement,
Throwable exception,
VariableReference... variables)
Constructor for ContractViolation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
InputVariable
InputVariable class.
|
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
InputVariable.clone()
Create a copy of the current variable
|
VariableReference |
InputVariable.clone(TestCase newTest)
Create a copy of the current variable for new test
|
VariableReference |
InputVariable.copy(TestCase newTest,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
InputVariable.getAdditionalVariableReference()
getAdditionalVariableReference
|
| Modifier and Type | Method and Description |
|---|---|
int |
InputVariable.compareTo(VariableReference other) |
boolean |
InputVariable.isAssignableFrom(VariableReference other)
Return true if other type can be assigned to this variable
|
boolean |
InputVariable.isAssignableTo(VariableReference other)
Return true if this variable can by assigned to a variable of other type
|
void |
InputVariable.replaceAdditionalVariableReference(VariableReference var1,
VariableReference var2)
replaceAdditionalVariableReference
|
boolean |
InputVariable.same(VariableReference r)
same
|
void |
InputVariable.setAdditionalVariableReference(VariableReference var)
setAdditionalVariableReference
|
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,Map<String,Object>> |
ObjectFields.getObjectVariables(Collection<VariableReference> vrefs) |
| Modifier and Type | Method and Description |
|---|---|
GenericAccessibleObject<?> |
TestCluster.getRandomGenerator(GenericClass clazz,
Set<GenericAccessibleObject<?>> excluded,
TestCase test,
int position,
VariableReference generatorRefToExclude,
int recursionDepth)
Randomly select one generator
|
| Modifier and Type | Field and Description |
|---|---|
Map<Integer,Set<VariableReference>> |
TestCaseExpander.variableMapping |
protected Map<VariableReference,String> |
TestCodeVisitor.variableNames |
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
TestFactory.addConstructor(TestCase test,
GenericConstructor constructor,
int position,
int recursionDepth) |
VariableReference |
TestFactory.addConstructor(TestCase test,
GenericConstructor constructor,
Type exactType,
int position,
int recursionDepth)
Add constructor at given position if max recursion depth has not been
reached
|
VariableReference |
TestFactory.addField(TestCase test,
GenericField field,
int position,
int recursionDepth)
Add a field to the test case
|
VariableReference |
TestFactory.addFieldAssignment(TestCase test,
GenericField field,
int position,
int recursionDepth)
Add method at given position if max recursion depth has not been reached
|
VariableReference |
TestFactory.addFieldFor(TestCase test,
VariableReference callee,
GenericField field,
int position)
Add reference to a field of variable "callee"
|
VariableReference |
TestFactory.addFunctionalMock(TestCase test,
Type type,
int position,
int recursionDepth) |
VariableReference |
TestFactory.addMethod(TestCase test,
GenericMethod method,
int position,
int recursionDepth)
Add method at given position if max recursion depth has not been reached
|
VariableReference |
TestFactory.addMethodFor(TestCase test,
VariableReference callee,
GenericMethod method,
int position)
Add a call on the method for the given callee at position
|
VariableReference |
TestCase.addStatement(Statement statement)
Append new statement at end of test case
|
VariableReference |
DefaultTestCase.addStatement(Statement statement)
Append new statement at end of test case
|
VariableReference |
TestCase.addStatement(Statement statement,
int position)
Add new statement at position and fix following variable references
|
VariableReference |
DefaultTestCase.addStatement(Statement statement,
int position)
Add new statement at position and fix following variable references
|
VariableReference |
TestFactory.attemptGeneration(TestCase test,
Type type,
int position)
Attempt to generate a non-null object; initialize recursion level to 0
|
protected VariableReference |
TestFactory.attemptGeneration(TestCase test,
Type type,
int position,
int recursionDepth,
boolean allowNull,
VariableReference generatorRefToExclude,
boolean canUseMocks,
boolean canReuseExistingVariables)
Try to generate an object of a given type
|
protected VariableReference |
TestFactory.attemptObjectGeneration(TestCase test,
int position,
int recursionDepth,
boolean allowNull)
Try to generate an object suitable for Object.class
|
VariableReference |
TestFactory.createObject(TestCase test,
Type type,
int position,
int recursionDepth,
VariableReference generatorRefToExclude) |
VariableReference |
TestFactory.createObject(TestCase test,
Type type,
int position,
int recursionDepth,
VariableReference generatorRefToExclude,
boolean allowNull,
boolean canUseFunctionalMocks,
boolean canReuseVariables)
Create a new non-null, non-primitive object and return reference
|
VariableReference |
TestCase.getLastObject(Type type)
Get the last object of the defined type
|
VariableReference |
DefaultTestCase.getLastObject(Type type) |
VariableReference |
TestCase.getLastObject(Type type,
int position)
Get the last object of the defined type
|
VariableReference |
DefaultTestCase.getLastObject(Type type,
int position) |
VariableReference |
TestCase.getRandomNonNullNonPrimitiveObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
DefaultTestCase.getRandomNonNullNonPrimitiveObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
TestCase.getRandomNonNullObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
DefaultTestCase.getRandomNonNullObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
TestCase.getRandomObject()
Get a random object matching type
|
VariableReference |
DefaultTestCase.getRandomObject()
Get a random object matching type
|
VariableReference |
TestCase.getRandomObject(int position)
Get a random object matching type
|
VariableReference |
DefaultTestCase.getRandomObject(int position)
Get a random object matching type
|
VariableReference |
TestCase.getRandomObject(Type type)
Get a random object matching type
|
VariableReference |
DefaultTestCase.getRandomObject(Type type)
Get a random object matching type
|
VariableReference |
TestCase.getRandomObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
DefaultTestCase.getRandomObject(Type type,
int position)
Get a random object matching type
|
VariableReference |
TestCase.getReturnValue(int position)
Get return value (variable) of statement at position
|
VariableReference |
DefaultTestCase.getReturnValue(int position)
Get return value (variable) of statement at position
|
VariableReference |
TestCase.setStatement(Statement statement,
int position)
Set new statement at position
|
VariableReference |
DefaultTestCase.setStatement(Statement statement,
int position)
Set new statement at position
|
| Modifier and Type | Method and Description |
|---|---|
Set<VariableReference> |
TestCase.getDependencies(VariableReference var)
Determine the set of variables that var depends on
|
Set<VariableReference> |
DefaultTestCase.getDependencies(VariableReference var)
Determine the set of variables that var depends on
|
List<VariableReference> |
TestCase.getObjects(int position)
Get all objects up to position satisfying constraint
|
List<VariableReference> |
DefaultTestCase.getObjects(int position)
Get all objects up to position satisfying constraint
|
List<VariableReference> |
TestCase.getObjects(Type type,
int position)
Get all objects up to position satisfying constraint
|
List<VariableReference> |
DefaultTestCase.getObjects(Type type,
int position)
Get all objects up to position satisfying constraint
|
Set<VariableReference> |
TestCase.getReferences(VariableReference var)
Determine the set of variables that depend on var
|
Set<VariableReference> |
DefaultTestCase.getReferences(VariableReference var)
Determine the set of variables that depend on var
|
List<VariableReference> |
TestFactory.satisfyParameters(TestCase test,
VariableReference callee,
List<Type> parameterTypes,
int position,
int recursionDepth,
boolean allowNull,
boolean excludeCalleeGenerators,
boolean canReuseExistingVariables)
Satisfy a list of parameters by reusing or creating variables
|
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
TestFactory.addFieldFor(TestCase test,
VariableReference callee,
GenericField field,
int position)
Add reference to a field of variable "callee"
|
VariableReference |
TestFactory.addMethodFor(TestCase test,
VariableReference callee,
GenericMethod method,
int position)
Add a call on the method for the given callee at position
|
void |
TestFactory.assignArray(TestCase test,
VariableReference array,
int arrayIndex,
int position)
Assign a value to an array index
|
protected void |
TestFactory.assignArray(TestCase test,
VariableReference array,
int arrayIndex,
int position,
List<VariableReference> objects)
Assign a value to an array index for a given set of objects
|
protected VariableReference |
TestFactory.attemptGeneration(TestCase test,
Type type,
int position,
int recursionDepth,
boolean allowNull,
VariableReference generatorRefToExclude,
boolean canUseMocks,
boolean canReuseExistingVariables)
Try to generate an object of a given type
|
VariableReference |
TestFactory.createObject(TestCase test,
Type type,
int position,
int recursionDepth,
VariableReference generatorRefToExclude) |
VariableReference |
TestFactory.createObject(TestCase test,
Type type,
int position,
int recursionDepth,
VariableReference generatorRefToExclude,
boolean allowNull,
boolean canUseFunctionalMocks,
boolean canReuseVariables)
Create a new non-null, non-primitive object and return reference
|
String |
TestCodeVisitor.getClassName(VariableReference var)
getClassName
|
Set<VariableReference> |
TestCase.getDependencies(VariableReference var)
Determine the set of variables that var depends on
|
Set<VariableReference> |
DefaultTestCase.getDependencies(VariableReference var)
Determine the set of variables that var depends on
|
static int |
ConstraintHelper.getLastPositionOfBounded(VariableReference vr,
TestCase tc) |
Object |
TestCase.getObject(VariableReference reference,
Scope scope)
Get actual object represented by a variable for a given execution scope
|
Object |
DefaultTestCase.getObject(VariableReference reference,
Scope scope)
Get actual object represented by a variable for a given execution scope
|
Set<VariableReference> |
TestCase.getReferences(VariableReference var)
Determine the set of variables that depend on var
|
Set<VariableReference> |
DefaultTestCase.getReferences(VariableReference var)
Determine the set of variables that depend on var
|
String |
TestCodeVisitor.getTypeName(VariableReference var) |
String |
TestCodeVisitor.getVariableName(VariableReference var)
getVariableName
|
boolean |
TestCase.hasReferences(VariableReference var)
Check if var is referenced after its definition
|
boolean |
DefaultTestCase.hasReferences(VariableReference var)
Check if var is referenced after its definition
|
boolean |
TestFactory.insertRandomCallOnObjectAt(TestCase test,
VariableReference var,
int position) |
static boolean |
ConstraintHelper.isNull(VariableReference vr,
TestCase tc) |
void |
TestCase.replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
void |
DefaultTestCase.replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
List<VariableReference> |
TestFactory.satisfyParameters(TestCase test,
VariableReference callee,
List<Type> parameterTypes,
int position,
int recursionDepth,
boolean allowNull,
boolean excludeCalleeGenerators,
boolean canReuseExistingVariables)
Satisfy a list of parameters by reusing or creating variables
|
int |
TestCase.sliceFor(VariableReference var) |
int |
DefaultTestCase.sliceFor(VariableReference var) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
TestFactory.assignArray(TestCase test,
VariableReference array,
int arrayIndex,
int position,
List<VariableReference> objects)
Assign a value to an array index for a given set of objects
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<VariableReference> |
ExecutionObserver.getDependentVariables(Statement statement)
Determine the set of variables that somehow lead to this statement
|
List<VariableReference> |
Scope.getElements(Type type)
Get all elements in scope of type
|
Collection<VariableReference> |
Scope.getVariables()
Get all variableReferences in scope
|
| Modifier and Type | Method and Description |
|---|---|
Object |
Scope.getObject(VariableReference reference)
Get current value of variable
|
void |
Scope.setObject(VariableReference reference,
Object o)
Set variable to new value
|
| Modifier and Type | Field and Description |
|---|---|
protected VariableReference |
MethodStatement.callee |
protected VariableReference |
AssignmentStatement.parameter |
protected VariableReference |
AbstractStatement.retval
The return value of this statement.
|
protected VariableReference |
FieldStatement.source |
| Modifier and Type | Field and Description |
|---|---|
protected List<VariableReference> |
EntityWithParametersStatement.parameters |
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
MethodStatement.getCallee()
Getter for the field
callee. |
VariableReference |
PrimitiveExpression.getLeftOperand()
Getter for the field
leftOperand. |
VariableReference |
Statement.getReturnValue()
getReturnValue
|
VariableReference |
AbstractStatement.getReturnValue()
getReturnValue
|
VariableReference |
PrimitiveExpression.getRightOperand()
Getter for the field
rightOperand. |
VariableReference |
FieldStatement.getSource()
Getter for the field
source. |
VariableReference |
AssignmentStatement.getValue()
getValue
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<VariableReference> |
AbstractStatement.getAssertionReferences()
getAssertionReferences
|
List<VariableReference> |
EntityWithParametersStatement.getParameterReferences() |
List<VariableReference> |
ConstructorStatement.getParameterReferences()
getParameterReferences
|
List<VariableReference> |
FunctionalMockStatement.getParameters(String id) |
List<VariableReference> |
Statement.getUniqueVariableReferences()
getUniqueVariableReferences
|
List<VariableReference> |
PrimitiveStatement.getUniqueVariableReferences()
getUniqueVariableReferences
|
List<VariableReference> |
PrimitiveExpression.getUniqueVariableReferences()
getUniqueVariableReferences
|
List<VariableReference> |
NullStatement.getUniqueVariableReferences()
getUniqueVariableReferences
|
List<VariableReference> |
MethodStatement.getUniqueVariableReferences()
getUniqueVariableReferences
|
List<VariableReference> |
FieldStatement.getUniqueVariableReferences()
getUniqueVariableReferences
|
List<VariableReference> |
EntityWithParametersStatement.getUniqueVariableReferences() |
List<VariableReference> |
AssignmentStatement.getUniqueVariableReferences()
getUniqueVariableReferences
|
List<VariableReference> |
ArrayStatement.getUniqueVariableReferences()
getUniqueVariableReferences
|
Set<VariableReference> |
Statement.getVariableReferences()
getVariableReferences
|
Set<VariableReference> |
PrimitiveStatement.getVariableReferences()
getVariableReferences
|
Set<VariableReference> |
PrimitiveExpression.getVariableReferences()
getVariableReferences
|
Set<VariableReference> |
NullStatement.getVariableReferences()
getVariableReferences
|
Set<VariableReference> |
MethodStatement.getVariableReferences()
getVariableReferences
|
Set<VariableReference> |
FieldStatement.getVariableReferences()
getVariableReferences
|
Set<VariableReference> |
EntityWithParametersStatement.getVariableReferences() |
Set<VariableReference> |
AssignmentStatement.getVariableReferences()
getVariableReferences
|
Set<VariableReference> |
ArrayStatement.getVariableReferences()
getVariableReferences
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
EntityWithParametersStatement.isBounded(VariableReference var)
Check if the given var is bounded in this method/constructor as input parameter
|
boolean |
Statement.references(VariableReference var)
Check if the statement makes use of var
|
boolean |
AbstractStatement.references(VariableReference var)
Check if the statement makes use of var
|
void |
Statement.replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
void |
PrimitiveStatement.replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
void |
PrimitiveExpression.replace(VariableReference oldVar,
VariableReference newVar)
Replace a VariableReference with another one
|
void |
NullStatement.replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
void |
MethodStatement.replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
void |
FieldStatement.replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
void |
EntityWithParametersStatement.replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
void |
AssignmentStatement.replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
void |
ArrayStatement.replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
void |
EntityWithParametersStatement.replaceParameterReference(VariableReference var,
int numParameter)
replaceParameterReference
|
void |
MethodStatement.setCallee(VariableReference callee)
Setter for the field
callee. |
void |
Statement.setRetval(VariableReference newRetVal)
setRetval
|
void |
AbstractStatement.setRetval(VariableReference newRetVal)
setRetval
|
void |
FieldStatement.setSource(VariableReference source)
Setter for the field
source. |
| Modifier and Type | Method and Description |
|---|---|
void |
FunctionalMockStatement.addMissingInputs(List<VariableReference> inputs) |
| Constructor and Description |
|---|
AbstractStatement(TestCase tc,
VariableReference retval)
Constructor for AbstractStatement.
|
AssignmentStatement(TestCase tc,
VariableReference var,
VariableReference value)
Constructor for AssignmentStatement.
|
ConstructorStatement(TestCase tc,
GenericConstructor constructor,
VariableReference retvar,
List<VariableReference> parameters)
This constructor allows you to use an already existing VariableReference
as retvar.
|
ConstructorStatement(TestCase tc,
GenericConstructor constructor,
VariableReference retvar,
List<VariableReference> parameters,
boolean check)
Constructor for ConstructorStatement.
|
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
|
EntityWithParametersStatement(TestCase tc,
VariableReference retval,
List<VariableReference> parameters,
Annotation[] annotations,
Annotation[][] parameterAnnotations) |
FieldStatement(TestCase tc,
GenericField field,
VariableReference source)
Constructor for FieldStatement.
|
FieldStatement(TestCase tc,
GenericField field,
VariableReference source,
VariableReference ret_var)
This constructor allows you to use an already existing VariableReference
as retvar.
|
FunctionalMockStatement(TestCase tc,
VariableReference retval,
Class<?> targetClass) |
MethodStatement(TestCase tc,
GenericMethod method,
VariableReference callee,
List<VariableReference> parameters)
Constructor for MethodStatement.
|
MethodStatement(TestCase tc,
GenericMethod method,
VariableReference callee,
List<VariableReference> parameters,
VariableReference retVal) |
MethodStatement(TestCase tc,
GenericMethod method,
VariableReference callee,
VariableReference retvar,
List<VariableReference> parameters)
This constructor allows you to use an already existing VariableReference
as retvar.
|
PrimitiveExpression(TestCase testCase,
VariableReference reference,
VariableReference leftOperand,
PrimitiveExpression.Operator operator,
VariableReference rightOperand)
Constructor for PrimitiveExpression.
|
PrimitiveStatement(TestCase tc,
VariableReference varRef,
T value)
Constructor for PrimitiveStatement.
|
| Constructor and Description |
|---|
ConstructorStatement(TestCase tc,
GenericConstructor constructor,
List<VariableReference> parameters)
Constructor for ConstructorStatement.
|
ConstructorStatement(TestCase tc,
GenericConstructor constructor,
VariableReference retvar,
List<VariableReference> parameters)
This constructor allows you to use an already existing VariableReference
as retvar.
|
ConstructorStatement(TestCase tc,
GenericConstructor constructor,
VariableReference retvar,
List<VariableReference> parameters,
boolean check)
Constructor for ConstructorStatement.
|
EntityWithParametersStatement(TestCase tc,
Type type,
List<VariableReference> parameters,
Annotation[] annotations,
Annotation[][] parameterAnnotations) |
EntityWithParametersStatement(TestCase tc,
VariableReference retval,
List<VariableReference> parameters,
Annotation[] annotations,
Annotation[][] parameterAnnotations) |
MethodStatement(TestCase tc,
GenericMethod method,
VariableReference callee,
List<VariableReference> parameters)
Constructor for MethodStatement.
|
MethodStatement(TestCase tc,
GenericMethod method,
VariableReference callee,
List<VariableReference> parameters,
VariableReference retVal) |
MethodStatement(TestCase tc,
GenericMethod method,
VariableReference callee,
VariableReference retvar,
List<VariableReference> parameters)
This constructor allows you to use an already existing VariableReference
as retvar.
|
| Constructor and Description |
|---|
PrivateFieldStatement(TestCase tc,
Class<?> klass,
String fieldName,
VariableReference callee,
VariableReference param) |
PrivateMethodStatement(TestCase tc,
Class<?> klass,
Method method,
VariableReference callee,
List<VariableReference> params,
boolean isStatic) |
| Constructor and Description |
|---|
PrivateMethodStatement(TestCase tc,
Class<?> klass,
Method method,
VariableReference callee,
List<VariableReference> params,
boolean isStatic) |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayIndex
This class defines an reference to an array element.
|
class |
ArrayReference |
class |
ConstantValue
ConstantValue class.
|
class |
FieldReference
FieldReference class.
|
class |
NullReference
Special case of VariableInstance pointing to null
|
class |
VariableReferenceImpl |
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
VariableReferenceImpl.clone()
Create a copy of the current variable
|
VariableReference |
VariableReference.clone()
Create a copy of the current variable
|
VariableReference |
NullReference.clone()
Create a copy of the current variable
|
VariableReference |
VariableReferenceImpl.clone(TestCase newTestCase)
Create a copy of the current variable for new test
|
VariableReference |
VariableReference.clone(TestCase newTest)
Create a copy of the current variable for new test
|
VariableReference |
ConstantValue.clone(TestCase newTestCase) |
VariableReference |
ArrayIndex.clone(TestCase newTestCase) |
VariableReference |
VariableReferenceImpl.copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
VariableReference.copy(TestCase newTest,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
FieldReference.copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
ConstantValue.copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
ArrayReference.copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
ArrayIndex.copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
VariableReference |
VariableReferenceImpl.getAdditionalVariableReference()
getAdditionalVariableReference
|
VariableReference |
VariableReference.getAdditionalVariableReference()
getAdditionalVariableReference
|
VariableReference |
FieldReference.getAdditionalVariableReference()
getAdditionalVariableReference
|
VariableReference |
ArrayIndex.getAdditionalVariableReference()
getAdditionalVariableReference
|
VariableReference |
FieldReference.getSource()
Access the source object
|
| Modifier and Type | Method and Description |
|---|---|
int |
VariableReferenceImpl.compareTo(VariableReference other) |
int |
VariableReference.compareTo(VariableReference other) |
boolean |
VariableReferenceImpl.isAssignableFrom(VariableReference other)
Return true if other type can be assigned to this variable
|
boolean |
VariableReference.isAssignableFrom(VariableReference other)
Return true if other type can be assigned to this variable
|
boolean |
VariableReferenceImpl.isAssignableTo(VariableReference other)
Return true if this variable can by assigned to a variable of other type
|
boolean |
VariableReference.isAssignableTo(VariableReference other)
Return true if this variable can by assigned to a variable of other type
|
void |
VariableReferenceImpl.replaceAdditionalVariableReference(VariableReference var1,
VariableReference var2)
replaceAdditionalVariableReference
|
void |
VariableReference.replaceAdditionalVariableReference(VariableReference var1,
VariableReference var2)
replaceAdditionalVariableReference
|
void |
FieldReference.replaceAdditionalVariableReference(VariableReference var1,
VariableReference var2)
replaceAdditionalVariableReference
|
void |
ArrayIndex.replaceAdditionalVariableReference(VariableReference var1,
VariableReference var2)
replaceAdditionalVariableReference
|
boolean |
VariableReferenceImpl.same(VariableReference r)
same
|
boolean |
VariableReference.same(VariableReference r)
same
|
boolean |
ConstantValue.same(VariableReference r)
same
|
boolean |
ArrayIndex.same(VariableReference r)
same
|
void |
VariableReferenceImpl.setAdditionalVariableReference(VariableReference var)
setAdditionalVariableReference
|
void |
VariableReference.setAdditionalVariableReference(VariableReference var)
setAdditionalVariableReference
|
void |
FieldReference.setAdditionalVariableReference(VariableReference var)
setAdditionalVariableReference
|
void |
ArrayIndex.setAdditionalVariableReference(VariableReference var)
setAdditionalVariableReference
|
| Constructor and Description |
|---|
FieldReference(TestCase testCase,
GenericField field,
Type fieldType,
VariableReference source)
We need this constructor to work around a bug in Java Generics which
causes a java.lang.reflect.GenericSignatureFormatError when accessing
getType
|
FieldReference(TestCase testCase,
GenericField field,
VariableReference source)
Constructor for FieldReference.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
GenericMethod.isOverloaded(List<VariableReference> parameters) |
boolean |
GenericConstructor.isOverloaded(List<VariableReference> parameters) |
Copyright © 2010–2017 EvoSuite. All rights reserved.