|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectComponentManager
public class ComponentManager extends Object
Stores and provides means to access the component sequences generated during a run of Randoop. "Component sequences" are sequences that Randoop uses to create larger sequences. This class manages different collections of component sequences:
| Constructor and Description |
|---|
ComponentManager()
Create an empty component manager, with an empty seed sequence set. |
ComponentManager(Collection<Sequence> generalSeeds)
Create a component manager, initially populated with the given sequences, which are considered seed sequences. |
| Modifier and Type | Method and Description |
|---|---|
void |
addClassLevelLiteral(Class<?> cls,
Sequence seq)
Add a sequence representing a literal value that can be used when testing members of the given class. |
void |
addGeneratedSequence(Sequence sequence)
Add a component sequence. |
void |
addPackageLevelLiteral(Package pkg,
Sequence seq)
Add a sequence representing a literal value that can be used when testing classes in the given package. |
void |
clearGeneratedSequences()
Removes any components sequences added so far, except for seed sequences, which are preserved. |
Set<Sequence> |
getAllGeneratedSequences()
|
Set<Sequence> |
getAllPrimitiveSequences()
Returns all sequences that represent primitive values (e.g. |
SimpleList<Sequence> |
getSequencesForType(Class<?> cls,
boolean exactMatch)
Returns all the general component sequences that create values of the given class. |
SimpleList<Sequence> |
getSequencesForType(StatementKind statement,
int i)
Returns component sequences that create values of the type required by the i-th input value of the given statement. |
int |
numGeneratedSequences()
Returns the number of (non-seed) sequences stored by the manager. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentManager()
public ComponentManager(Collection<Sequence> generalSeeds)
generalSeeds - seed sequences. Can be null, in which case
the seed sequences set is considered empty.| Method Detail |
|---|
public int numGeneratedSequences()
public void addClassLevelLiteral(Class<?> cls,
Sequence seq)
public void addPackageLevelLiteral(Package pkg,
Sequence seq)
public void addGeneratedSequence(Sequence sequence)
public void clearGeneratedSequences()
public Set<Sequence> getAllGeneratedSequences()
public SimpleList<Sequence> getSequencesForType(Class<?> cls,
boolean exactMatch)
public SimpleList<Sequence> getSequencesForType(StatementKind statement,
int i)
public Set<Sequence> getAllPrimitiveSequences()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||