public interface GrammarItem
| Modifier and Type | Interface and Description |
|---|---|
static class |
GrammarItem.ItemType |
| Modifier and Type | Field and Description |
|---|---|
static String |
INDENT
default indentation
|
| Modifier and Type | Method and Description |
|---|---|
List<GrammarItem> |
getChildren()
get the child items as a list.
|
String |
getStructure(String indent)
Reserialise showing the internal structure of the grammar.
|
GrammarItem.ItemType |
getType()
what type, in terms of how to process its conversion to main grammar
|
boolean |
isKeywordPart()
Could this be part or all of a keyword ? Is either a letter or all of its parts are letters
|
boolean |
isPlural()
are there more than one of these items.
|
GrammarItem |
reachThrough()
if this item is a wrapper round a single item, get that one.
|
static final String INDENT
GrammarItem.ItemType getType()
List<GrammarItem> getChildren()
boolean isPlural()
GrammarItem reachThrough()
boolean isKeywordPart()
String getStructure(String indent)
indent - how much to indent each level of the structureCopyright © 2019. All rights reserved.