Class LookaheadNIterator<E>


  • public class LookaheadNIterator<E>
    extends Lookahead2Iterator<E>
    A subclass of a Lookahead2Iterator which allows any number of character of lookahead.
    • Constructor Summary

      Constructors 
      Constructor Description
      LookaheadNIterator​(java.util.Iterator<E> input)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void consume()
      Eat one token.
      E lookahead​(int n)
      Look at character n places up the stream
      E nextnext()  
      E peekNext()  
      E prev()
      Return the token just consumed.
      void setInputIterator​(java.util.Iterator<E> input)
      Should be called if the default constructor is used.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LookaheadNIterator

        public LookaheadNIterator​(java.util.Iterator<E> input)