org.springframework.beans.factory.parsing

## 类 ParseState

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

-     public final class ParseState
      extends 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.

  从以下版本开始:
    2.0
  作者:
    Rob Harrop

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static interface` | `ParseState.Entry` Marker interface for entries into the `ParseState`.

  - ### 构造器概要

    构造器
    构造器和说明
    `ParseState()` Create a new `ParseState` with an empty `LinkedList`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `ParseState.Entry` | `peek()` Return the `ParseState.Entry` currently at the top of the `LinkedList` or `null` if the `LinkedList` is empty.
    `void` | `pop()` Remove an `ParseState.Entry` from the `LinkedList`.
    `void` | `push(ParseState.Entry entry)` Add a new `ParseState.Entry` to the `LinkedList`.
    `ParseState` | `snapshot()` Create a new instance of `ParseState` which is an independent snapshot of this instance.
    `String` | `toString()` Returns a tree-style representation of the current `ParseState`.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### ParseState

          public ParseState()

      Create a new `ParseState` with an empty `LinkedList`.

  - ### 方法详细资料

    - #### push

          public void push(ParseState.Entry entry)

      Add a new `ParseState.Entry` to the `LinkedList`.

    - #### pop

          public void pop()

      Remove an `ParseState.Entry` from the `LinkedList`.

    - #### peek

          @Nullable
          public ParseState.Entry peek()

      Return the `ParseState.Entry` currently at the top of the `LinkedList` or `null` if the `LinkedList` is empty.

    - #### snapshot

          public ParseState snapshot()

      Create a new instance of `ParseState` which is an independent snapshot of this instance.

    - #### toString

          public String toString()

      Returns a tree-style representation of the current `ParseState`.
      覆盖:
        `toString` 在类中 `Object`