Interface TokenStream.CharacterStream

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Determine if there is another character available in this stream.
      int index()
      Get the index for the last character returned from next().
      char next()
      Obtain the next character value, and advance the stream.
      Position position​(int startIndex)
      Get the position for the last character returned from next().
    • Method Detail

      • hasNext

        boolean hasNext()
        Determine if there is another character available in this stream.
        Returns:
        true if there is another character (and next() can be called), or false otherwise
      • index

        int index()
        Get the index for the last character returned from next().
        Returns:
        the index of the last character returned
      • position

        Position position​(int startIndex)
        Get the position for the last character returned from next().
        Parameters:
        startIndex - the starting index
        Returns:
        the position of the last character returned; never null