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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceMarker interface for entries into theParseState. -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
ParseState
public ParseState()Create a newParseStatewith an emptyArrayDeque.
-
-
Method Details
-
push
Add a newParseState.Entryto theArrayDeque. -
pop
public void pop()Remove anParseState.Entryfrom theArrayDeque. -
peek
Return theParseState.Entrycurrently at the top of theArrayDequeornullif theArrayDequeis empty. -
snapshot
Create a new instance ofParseStatewhich is an independent snapshot of this instance. -
toString
-