 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.string;
74 for (
int i = 0; i < parts.length; i++)
76 out = out.replaceAll(
"\\{\\$" + i +
"\\}", parts[i].
toString());
Interface signaling that a picker can be shrunk.
Generates a string according to a predefined pattern.
String toString()
Returns the pattern into a string.
Pickers generating and manipulating collections, such as lists and sets.
A variant of PickIf that selects an element if it is smaller than a reference object.
static final transient RandomFloat instance
A public static instance of RandomFloat.
Shrinkable< String > shrink(String o, Picker< Float > decision, float magnitude)
Pickers that produce pseudo-random objects such as numbers.
Picker that merges the result of other pickers into a composite data structure.
String m_pattern
The string pattern.
StringPattern newPicker(Picker<?> ... pickers)
Returns a new string pattern picker.
String getOutput(Object ... parts)
Creates the output composite object from the internal values that have been picked.
Pickers that produce a value in relation to another value.
Picks a floating point number uniformly in an interval.
Shrinkable< String > shrink(String o)
StringPattern(String pattern, Picker<?> ... parts)
Creates a new StringPattern picker.