| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | |
| protected static Random |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static Integer | |
| public static void | |
| protected static void | randomPhrase(Grammar g, List<Integer> tokenTypes, String startRule)
an experimental method to generate random phrases for a given grammar given a start rule. |
| debug | back to summary |
|---|---|
| public static final boolean debug | |
| random | back to summary |
|---|---|
| protected static Random random | |
| RandomPhrase | back to summary |
|---|---|
| public RandomPhrase() | |
| getTokenType | back to summary |
|---|---|
| protected static Integer getTokenType(Label label) | |
| main | back to summary |
|---|---|
| public static void main(String[] args) Used to generate random strings | |
| randomPhrase | back to summary |
|---|---|
| protected static void randomPhrase(Grammar g, List<Integer> tokenTypes, String startRule) an experimental method to generate random phrases for a given grammar given a start rule. Return a list of token types. | |