org.egothor.parser
Class Strings2Tokens

java.lang.Object
  extended by org.egothor.parser.Strings2Tokens
All Implemented Interfaces:
Sequence<Token>, SequenceWithRestart<Token>

public class Strings2Tokens
extends java.lang.Object
implements SequenceWithRestart<Token>

Transforms an array of strings into the sequence of tokens.

Author:
galambos

Constructor Summary
Strings2Tokens(java.lang.String type, java.lang.String[] text)
          Creates a new instance of Strings2Tokens
 
Method Summary
 Token next()
          Return the next item in the iteration.
 void restart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Strings2Tokens

public Strings2Tokens(java.lang.String type,
                      java.lang.String[] text)
Creates a new instance of Strings2Tokens

Method Detail

next

public Token next()
Description copied from interface: Sequence
Return the next item in the iteration.

Specified by:
next in interface Sequence<Token>
Returns:
the item

restart

public void restart()
Specified by:
restart in interface SequenceWithRestart<Token>