class InputGeneratorImpl<T> extends java.lang.Object implements InputGenerator<T>
Constructor and Description |
---|
InputGeneratorImpl(Parser<T> parser,
java.util.List<java.lang.Class<T>> generatedTypes) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Class<T>> |
getGeneratedTypes()
Returns the list of classes of which type the generated types are.
|
Input<T> |
getInputFromReader(java.io.Reader reader,
char separator)
Gets a reader input generator from the given reader.
|
Input<T> |
getInputFromUser(javax.swing.JPanel panel)
Gets an input generator taking input from the user.
|
MixedInput<T> |
getMixedInput(java.util.List<Input<T>> inputs)
Gets an input which mixes the given inputs,
|
Input<T> |
getRandomInput(java.util.List<Bound<T>> bounds)
Gets an input generator generating random input from multiple bounds.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMixedInputUntyped, getRandomInput, getRandomInputUntyped
public Input<T> getInputFromReader(java.io.Reader reader, char separator)
InputGenerator
getInputFromReader
in interface InputGenerator<T>
reader
- The reader to get the input from. Each line in the reader is considered to contain a separate input list.separator
- The separator separating different entries within the same line.public Input<T> getInputFromUser(javax.swing.JPanel panel)
InputGenerator
getInputFromUser
in interface InputGenerator<T>
panel
- The panel to use to ask the user to supply input. Implementations
are allowed to ignore this parameter and ask the user for input in different ways.public Input<T> getRandomInput(java.util.List<Bound<T>> bounds)
InputGenerator
getRandomInput
in interface InputGenerator<T>
bounds
- The bounds generating the random input.public MixedInput<T> getMixedInput(java.util.List<Input<T>> inputs)
InputGenerator
getMixedInput
in interface InputGenerator<T>
inputs
- The inputs which should be mixed.public java.util.List<java.lang.Class<T>> getGeneratedTypes()
InputGenerator
getGeneratedTypes
in interface InputGenerator<T>