net.sf.parcinj
Interface TokenIterator


public interface TokenIterator

Interface of classes which iterate over Token objects.


Method Summary
 Token currentToken()
          Returns the current token.
 void nextToken()
          Moves to the next token.
 

Method Detail

currentToken

Token currentToken()
Returns the current token. Subsequent calls of this method returns always the same object if there are no invocations of nextToken() in between. Initially this method returns the first token if any.

Returns:
null if there are no more tokens.

nextToken

void nextToken()
Moves to the next token. Does nothing if there are no more tokens. Next invocation of currentToken() will return the next token.