randoop
Class ClassLiterals
Object
MappedSequences<Class<?>>
ClassLiterals
public class ClassLiterals
extends MappedSequences<Class<?>>
For a given class C, ClassLiterals maps C (if present) to a
collection of literals (represented as single-element sequences)
that can be used as inputs to members of the given class.
Method Summary
void |
addSequence(Class<?> key,
Sequence seq)
Adds a sequence to the set of sequences associated
with the given key. |
SimpleList<Sequence> |
getSequences(Class<?> key,
Class<?> desiredType)
Returns the set of sequences (as a list) that are associated with
the given key and create values of the desiredType. |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassLiterals
public ClassLiterals()
addSequence
public void addSequence(Class<?> key,
Sequence seq)
- Description copied from class:
MappedSequences
- Adds a sequence to the set of sequences associated
with the given key.
- Overrides:
addSequence in class MappedSequences<Class<?>>
getSequences
public SimpleList<Sequence> getSequences(Class<?> key,
Class<?> desiredType)
- Description copied from class:
MappedSequences
- Returns the set of sequences (as a list) that are associated with
the given key and create values of the desiredType.
- Overrides:
getSequences in class MappedSequences<Class<?>>