Class DefaultParsingState

    • Constructor Detail

      • DefaultParsingState

        public DefaultParsingState​(String id)
      • DefaultParsingState

        public DefaultParsingState​(String id,
                                   boolean enterLeaveContent)
      • DefaultParsingState

        public DefaultParsingState​(String id,
                                   boolean enterLeaveContent,
                                   CharacterHandlerMap enterStateHandlers)
    • Method Detail

      • setIgnoreWhitespaces

        public void setIgnoreWhitespaces​(boolean ignoreWhitespaces)
      • isIgnoreWhitespaces

        public boolean isIgnoreWhitespaces()
      • setLeaveOnWhitespace

        public void setLeaveOnWhitespace​(boolean leaveOnWhitespace)
      • isLeaveOnWhitespace

        public boolean isLeaveOnWhitespace()
      • setDefaultHandler

        public void setDefaultHandler​(CharacterHandler handler)
      • enterState

        public void enterState​(char ch,
                               ParsingState state)
      • leaveState

        public void leaveState​(char ch)
      • setHandleEntrance

        public void setHandleEntrance​(boolean handleEntrance)
      • setWhitespaceHandler

        public void setWhitespaceHandler​(CharacterHandler handler)
      • setEndContentHandler

        public void setEndContentHandler​(CharacterHandler handler)
      • updateValueIndex

        public boolean updateValueIndex()
        Description copied from interface: ParsingState
        Whether the index of the value corresponding to this state in the command line being parsed should be set to the index when parsing enters this state.
        Specified by:
        updateValueIndex in interface ParsingState
        Returns:
        true if the index of the current value should be updated when parsing enters this state, false - otherwise.
      • lockValueIndex

        public boolean lockValueIndex()
        Description copied from interface: ParsingState
        Whether the index of the current value being parsed should remain the same until parsing leaves this state even if there are other nested states that might want to update the value index (i.e. states that return true from updateValueIndex).
        Specified by:
        lockValueIndex in interface ParsingState
        Returns:
        true if the value index should remain unchanged until this state is left.