ArrayDeque-based structure for tracking the logical position during
a parsing process. entries are added to the ArrayDeque at each point
during the parse phase in a reader-specific manner.
Calling toString() will render a tree-style view of the current logical
position in the parse phase. This representation is intended for use in error messages.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ParseState.Entry
Marker interface for entries into the |
| Modifier and Type | Field and Description |
|---|---|
| private final ArrayDeque | state
Internal |
| Access | Constructor and Description |
|---|---|
| public | |
| private | ParseState(ParseState other)
Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public ParseState. | |
| public void | |
| public void | |
| public ParseState | |
| public String | toString()
Overrides java. ParseState.
|
| state | back to summary |
|---|---|
| private final ArrayDeque<ParseState. Internal | |
| ParseState | back to summary |
|---|---|
| public ParseState() Create a new | |
| ParseState | back to summary |
|---|---|
| private ParseState(ParseState other) Create a new | |
| peek | back to summary |
|---|---|
| public ParseState. Return the
| |
| pop | back to summary |
|---|---|
| public void pop() Remove an | |
| push | back to summary |
|---|---|
| public void push(ParseState. Add a new | |
| snapshot | back to summary |
|---|---|
| public ParseState snapshot() Create a new instance of | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a tree-style representation of the current
| |
ParseState.