Class ErrorState

    • Constructor Detail

      • ErrorState

        public ErrorState()
        Empty constructor.

        This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.

        Since:
        12.0
    • Method Detail

      • processToken

        public boolean processToken​(ParseToken token)
        Process one token.

        This method always generate an error, as no data is expected in this state.

        Specified by:
        processToken in interface ProcessingState
        Parameters:
        token - token to process
        Returns:
        true if token was processed, false otherwise