public final class ParseState extends Object
LinkedList-based structure for tracking the logical position during
 a parsing process. entries are added to the LinkedList 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 | 
|---|---|
| static interface  | ParseState.EntryMarker interface for entries into the  ParseState. | 
| Constructor and Description | 
|---|
| ParseState()Create a new  ParseStatewith an emptyLinkedList. | 
| Modifier and Type | Method and Description | 
|---|---|
| ParseState.Entry | peek()Return the  ParseState.Entrycurrently at the top of theLinkedListornullif theLinkedListis empty. | 
| void | pop()Remove an  ParseState.Entryfrom theLinkedList. | 
| void | push(ParseState.Entry entry)Add a new  ParseState.Entryto theLinkedList. | 
| ParseState | snapshot()Create a new instance of  ParseStatewhich is an independent snapshot
 of this instance. | 
| String | toString()Returns a tree-style representation of the current  ParseState. | 
public ParseState()
ParseState with an empty LinkedList.public void push(ParseState.Entry entry)
ParseState.Entry to the LinkedList.public void pop()
ParseState.Entry from the LinkedList.@Nullable public ParseState.Entry peek()
ParseState.Entry currently at the top of the LinkedList or
 null if the LinkedList is empty.public ParseState snapshot()
ParseState which is an independent snapshot
 of this instance.