Interface InputConsumer

    • Method Detail

      • accepts

        Class[] accepts()
        Returns the class that the consumer accepts.
        Returns:
        the Class of objects that can be processed
      • input

        void input​(Token token)
        The method that accepts the input token and then processes it.
        Parameters:
        token - the token to accept and process
      • hasInput

        boolean hasInput()
        Returns whether an input token is currently present.
        Returns:
        true if input token present
      • currentInput

        Token currentInput()
        Returns the current input token, if any.
        Returns:
        the input token, null if none present