org.crsh.cmdline.matcher.tokenizer
Class Tokenizer

java.lang.Object
  extended by org.crsh.cmdline.matcher.tokenizer.Tokenizer
All Implemented Interfaces:
Iterator<Token>

public class Tokenizer
extends Object
implements Iterator<Token>

Author:
Julien Viet

Constructor Summary
Tokenizer(CharSequence s)
           
 
Method Summary
 int getIndex()
           
 Termination getTermination()
           
 boolean hasNext()
           
 Token next()
           
 Token peek()
           
 void pushBack()
           
 void pushBack(int count)
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tokenizer

public Tokenizer(CharSequence s)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Token>

next

public Token next()
Specified by:
next in interface Iterator<Token>

remove

public void remove()
Specified by:
remove in interface Iterator<Token>

getIndex

public int getIndex()

pushBack

public void pushBack()

pushBack

public void pushBack(int count)

peek

public Token peek()

getTermination

public Termination getTermination()


Copyright © 2011 eXo Platform SAS. All Rights Reserved.