org.springframework.beans.factory.parsing

Class ParseState

  • java.lang.Object
    • org.springframework.beans.factory.parsing.ParseState


  • public final class ParseState
    extends java.lang.Object
    Simple 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.

    Since:
    2.0
    Author:
    Rob Harrop
    • Constructor Detail

      • ParseState

        public ParseState()
        Create a new ParseState with an empty LinkedList.
    • Method Detail

      • snapshot

        public ParseState snapshot()
        Create a new instance of ParseState which is an independent snapshot of this instance.
      • toString

        public java.lang.String toString()
        Returns a tree-style representation of the current ParseState.
        Overrides:
        toString in class java.lang.Object