Class ParseState
java.lang.Object
org.springframework.beans.factory.parsing.ParseState
Simple 
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.
- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceMarker interface for entries into theParseState.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionpeek()Return theParseState.Entrycurrently at the top of theArrayDequeornullif theArrayDequeis empty.voidpop()Remove anParseState.Entryfrom theArrayDeque.voidpush(ParseState.Entry entry) Add a newParseState.Entryto theArrayDeque.snapshot()Create a new instance ofParseStatewhich is an independent snapshot of this instance.toString()Returns a tree-style representation of the currentParseState.
- 
Constructor Details- 
ParseStatepublic ParseState()Create a newParseStatewith an emptyArrayDeque.
 
- 
- 
Method Details- 
pushAdd a newParseState.Entryto theArrayDeque.
- 
poppublic void pop()Remove anParseState.Entryfrom theArrayDeque.
- 
peekReturn theParseState.Entrycurrently at the top of theArrayDequeornullif theArrayDequeis empty.
- 
snapshotCreate a new instance ofParseStatewhich is an independent snapshot of this instance.
- 
toStringReturns a tree-style representation of the currentParseState.
 
-