public final class GrtStringFuzzer extends GrtFuzzer
String literal by applying a GrtStringFuzzer.StringFuzzingOperation.| Modifier and Type | Class and Description |
|---|---|
static class |
GrtStringFuzzer.StringFuzzingOperation
Represents the fuzzing operations for Strings.
|
| Modifier and Type | Field and Description |
|---|---|
private static GrtStringFuzzer |
INSTANCE
Singleton instance.
|
NEGATIVE_INDEX_CACHE| Modifier | Constructor and Description |
|---|---|
private |
GrtStringFuzzer()
Private constructor to enforce singleton.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFuzz(Type type)
Returns
true if this fuzzer can handle the type. |
Sequence |
fuzz(Sequence sequence)
Appends fuzzing statements to
sequence. |
static GrtStringFuzzer |
getInstance()
Obtain the singleton instance of
GrtStringFuzzer. |
private static java.lang.String |
mutate(java.lang.String s)
Mutate a string by applying a random operation.
|
private static char |
randomPrintableChar()
Returns a random printable ASCII character.
|
getFuzzer, getRelativeNegativeIndicesprivate static final GrtStringFuzzer INSTANCE
private GrtStringFuzzer()
public static GrtStringFuzzer getInstance()
GrtStringFuzzer.public boolean canFuzz(Type type)
GrtFuzzertrue if this fuzzer can handle the type.public Sequence fuzz(Sequence sequence)
GrtFuzzersequence. If the type is unsupported by this fuzzer, the
implementation throws an exception.private static java.lang.String mutate(java.lang.String s)
s - the string to mutateprivate static char randomPrintableChar()