code: public Object setState(final Object state) {
          final Object oldState = this.state;
          this.state = state;
          return oldState;
      }
docs: Set the "state object" from the parser (can be used to parse state between parser functions).
  
  @param state
  The state object.
  @return The old value of the state object.