com.singularsys.jep.configurableparser
Class Lookahead2Iterator<E>

java.lang.Object
  extended by com.singularsys.jep.configurableparser.Lookahead2Iterator<E>

public class Lookahead2Iterator<E>
extends java.lang.Object

An iterator which stores the next two tokens.


Constructor Summary
Lookahead2Iterator(java.util.Iterator<E> input)
           
Lookahead2Iterator(java.util.List<E> input)
           
 
Method Summary
 void consume()
          Eat one token.
 E nextnext()
           
 E peekNext()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lookahead2Iterator

public Lookahead2Iterator(java.util.List<E> input)

Lookahead2Iterator

public Lookahead2Iterator(java.util.Iterator<E> input)
Method Detail

peekNext

public E peekNext()

nextnext

public E nextnext()

consume

public void consume()
Eat one token.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 Singular Systems http://www.singularsys.com/jep