| Modifier and Type | Field and Description |
|---|---|
protected GenericClass |
InputVariable.type
Type (class) of the variable
|
| Modifier and Type | Method and Description |
|---|---|
GenericClass |
InputVariable.getGenericClass()
getGenericClass
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<GenericClass,Set<TestCase>> |
ObjectPool.pool
The actual object pool
|
| Modifier and Type | Method and Description |
|---|---|
GenericClass |
CastClassManager.selectCastClass() |
GenericClass |
CastClassManager.selectCastClass(TypeVariable<?> typeVariable,
boolean allowRecursion,
Map<TypeVariable<?>,Type> ownerVariableMap) |
GenericClass |
CastClassManager.selectCastClass(WildcardType wildcardType,
boolean allowRecursion,
Map<TypeVariable<?>,Type> ownerVariableMap) |
static GenericClass |
CastClassManager.selectClass(List<GenericClass> candidates) |
| Modifier and Type | Method and Description |
|---|---|
Set<GenericClass> |
CastClassManager.getCastClasses() |
Set<GenericClass> |
ObjectPool.getClasses() |
static List<GenericClass> |
CastClassManager.sortByValue(Map<GenericClass,Integer> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
CastClassManager.addCastClass(GenericClass clazz,
int depth) |
void |
ObjectPool.addSequence(GenericClass clazz,
TestCase sequence)
Insert a new sequence for given Type
|
static ObjectPool |
ObjectPool.getPoolFromJUnit(GenericClass targetClass,
Class<?> testSuite)
Execute all tests in a JUnit test suite and add resulting sequences from
carver
|
TestCase |
ObjectPool.getRandomSequence(GenericClass clazz)
Randomly choose a sequence for a given Type
|
Set<TestCase> |
ObjectPool.getSequences(GenericClass clazz)
Retrieve all possible sequences for a given Type
|
boolean |
ObjectPool.hasSequence(GenericClass clazz)
Check if there are sequences for given Type
|
| Modifier and Type | Method and Description |
|---|---|
static GenericClass |
CastClassManager.selectClass(List<GenericClass> candidates) |
static List<GenericClass> |
CastClassManager.sortByValue(Map<GenericClass,Integer> map) |
| Modifier and Type | Method and Description |
|---|---|
GenericClass |
DependencyPair.getDependencyClass() |
| Modifier and Type | Method and Description |
|---|---|
void |
TestCluster.addGenerator(GenericClass target,
GenericAccessibleObject<?> call)
Add a generator reflection object
|
void |
TestCluster.addModifier(GenericClass target,
GenericAccessibleObject<?> call)
Add a modifier reflection object
|
void |
TestCluster.clearGeneratorCache(GenericClass target)
Forget everything we have cached
|
Set<GenericAccessibleObject<?>> |
TestCluster.getCallsFor(GenericClass clazz,
boolean resolve)
Return all calls that have a parameter with given type
|
Set<GenericAccessibleObject<?>> |
TestCluster.getGenerators(GenericClass clazz,
boolean resolve)
Get a list of all generator objects for the type
|
GenericAccessibleObject<?> |
TestCluster.getRandomCallFor(GenericClass clazz,
TestCase test,
int position) |
GenericAccessibleObject<?> |
TestCluster.getRandomGenerator(GenericClass clazz)
Randomly select one generator
|
GenericAccessibleObject<?> |
TestCluster.getRandomGenerator(GenericClass clazz,
Set<GenericAccessibleObject<?>> excluded,
TestCase test,
int position,
VariableReference generatorRefToExclude,
int recursionDepth)
Randomly select one generator
|
boolean |
TestCluster.hasGenerator(GenericClass clazz)
Determine if there are generators
|
void |
TestCluster.invalidateGeneratorCache(GenericClass klass) |
| Modifier and Type | Method and Description |
|---|---|
GenericClass |
MethodDescriptor.getReturnClass() |
| Modifier and Type | Method and Description |
|---|---|
GenericMethod |
MethodDescriptor.getGenericMethodFor(GenericClass clazz) |
| Constructor and Description |
|---|
EvoInvocationListener(GenericClass retvalType) |
MethodDescriptor(Method method,
GenericClass retvalType) |
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveStatement<?> |
PrimitiveStatement.getPrimitiveStatement(TestCase tc,
GenericClass genericClass)
Generate a primitive statement for given type initialized with default
value (0)
|
static PrimitiveStatement<?> |
PrimitiveStatement.getRandomStatement(TestCase tc,
GenericClass clazz,
int position)
Create random primitive statement
|
| Constructor and Description |
|---|
ClassPrimitiveStatement(TestCase tc,
GenericClass type,
Set<Class<?>> assignableClasses) |
PrimitiveStatement(TestCase tc,
GenericClass clazz,
T value) |
| Modifier and Type | Field and Description |
|---|---|
protected GenericClass |
VariableReferenceImpl.type
Type (class) of the variable
|
| Modifier and Type | Method and Description |
|---|---|
GenericClass |
VariableReferenceImpl.getGenericClass()
getGenericClass
|
GenericClass |
VariableReference.getGenericClass()
getGenericClass
|
| Constructor and Description |
|---|
ArrayReference(TestCase tc,
GenericClass clazz,
int array_length)
Constructor for ArrayReference.
|
ArrayReference(TestCase tc,
GenericClass clazz,
int[] lengths)
Constructor for ArrayReference.
|
ConstantValue(TestCase testCase,
GenericClass type)
Constructor for ConstantValue.
|
ConstantValue(TestCase testCase,
GenericClass type,
Object value) |
VariableReferenceImpl(TestCase testCase,
GenericClass type)
Constructor
|
| Modifier and Type | Field and Description |
|---|---|
protected GenericClass |
GenericAccessibleObject.owner |
| Modifier and Type | Field and Description |
|---|---|
protected List<GenericClass> |
GenericAccessibleObject.typeVariables |
| Modifier and Type | Method and Description |
|---|---|
GenericClass |
GenericClass.getComponentClass() |
GenericClass |
GenericAccessibleObject.getGeneratedClass() |
GenericClass |
GenericClass.getGenericInstantiation()
Instantiate all type variables randomly, but adhering to type boundaries
|
GenericClass |
GenericClass.getGenericInstantiation(Map<TypeVariable<?>,Type> typeMap)
Instantiate type variables using map, and anything not contained in the
map randomly
|
GenericClass |
GenericAccessibleObject.getOwnerClass() |
GenericClass |
GenericClass.getOwnerType()
Retrieve the generic owner
|
GenericClass |
GenericClass.getRawGenericClass() |
GenericClass |
GenericClass.getSuperClass() |
GenericClass |
GenericClass.getWithComponentClass(GenericClass componentClass) |
GenericClass |
GenericClass.getWithGenericParameterTypes(List<GenericClass> parameters) |
GenericClass |
GenericClass.getWithOwnerType(GenericClass ownerClass) |
GenericClass |
GenericClass.getWithParametersFromSuperclass(GenericClass superClass)
If this is a LinkedList> and the super class is a List
|
GenericClass |
GenericClass.getWithParameterTypes(List<Type> parameters) |
GenericClass |
GenericClass.getWithParameterTypes(Type[] parameters) |
GenericClass |
GenericClass.getWithWildcardTypes() |
| Modifier and Type | Method and Description |
|---|---|
Collection<GenericClass> |
GenericClass.getGenericBounds() |
List<GenericClass> |
GenericClass.getInterfaces() |
List<GenericClass> |
GenericMethod.getParameterClasses() |
List<GenericClass> |
GenericClass.getParameterClasses()
Retrieve list of parameter classes
|
protected Map<TypeVariable<?>,GenericClass> |
GenericAccessibleObject.getTypeVariableMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
GenericClass.canBeInstantiatedTo(GenericClass otherType)
Determine if there exists an instantiation of the type variables such
that the class matches otherType
|
GenericMethod |
GenericMethod.copyWithNewOwner(GenericClass newOwner) |
GenericField |
GenericField.copyWithNewOwner(GenericClass newOwner) |
GenericConstructor |
GenericConstructor.copyWithNewOwner(GenericClass newOwner) |
abstract T |
GenericAccessibleObject.copyWithNewOwner(GenericClass newOwner) |
GenericMethod |
GenericMethod.copyWithOwnerFromReturnType(GenericClass returnType) |
GenericField |
GenericField.copyWithOwnerFromReturnType(GenericClass returnType) |
GenericConstructor |
GenericConstructor.copyWithOwnerFromReturnType(GenericClass returnType) |
abstract T |
GenericAccessibleObject.copyWithOwnerFromReturnType(GenericClass returnType) |
T |
GenericAccessibleObject.getGenericInstantiation(GenericClass calleeType)
Instantiate all generic type parameters based on a new callee type
|
T |
GenericAccessibleObject.getGenericInstantiationFromReturnValue(GenericClass generatedType)
Set type parameters based on return type
|
GenericClass |
GenericClass.getWithComponentClass(GenericClass componentClass) |
GenericClass |
GenericClass.getWithOwnerType(GenericClass ownerClass) |
GenericClass |
GenericClass.getWithParametersFromSuperclass(GenericClass superClass)
If this is a LinkedList> and the super class is a List
|
boolean |
GenericClass.hasGenericSuperType(GenericClass superType)
Determine if this class is a subclass of superType
|
boolean |
GenericClass.isAssignableFrom(GenericClass rhsType)
isAssignableFrom
|
boolean |
GenericClass.isAssignableTo(GenericClass lhsType)
isAssignableTo
|
boolean |
GenericClass.isGenericSuperTypeOf(GenericClass subType)
Determine if subType is a generic subclass
|
| Modifier and Type | Method and Description |
|---|---|
void |
VarMap.addAll(Map<TypeVariable<?>,GenericClass> variables) |
GenericClass |
GenericClass.getWithGenericParameterTypes(List<GenericClass> parameters) |
void |
GenericAccessibleObject.setTypeParameters(List<GenericClass> parameterTypes) |
| Constructor and Description |
|---|
GenericAccessibleObject(GenericClass owner) |
GenericClass(GenericClass copy) |
GenericConstructor(Constructor<?> constructor,
GenericClass owner) |
GenericField(Field field,
GenericClass owner) |
GenericMethod(Method method,
GenericClass type) |
Copyright © 2010–2017 EvoSuite. All rights reserved.