org.crsh.cli.impl.tokenizer
Class Tokenizer

java.lang.Object
  extended by org.crsh.cli.impl.tokenizer.Tokenizer
All Implemented Interfaces:
Iterator<Token>
Direct Known Subclasses:
TokenizerImpl

public abstract class Tokenizer
extends Object
implements Iterator<Token>


Field Summary
private  int index
          .
private  int ptr
          .
private  ArrayList<Token> stack
          .
 
Constructor Summary
protected Tokenizer()
           
 
Method Summary
abstract  Delimiter getDelimiter()
           
 int getIndex()
           
 boolean hasNext()
           
 Token next()
           
protected abstract  Token parse()
           
 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
 

Field Detail

stack

private ArrayList<Token> stack
.


ptr

private int ptr
.


index

private int index
.

Constructor Detail

Tokenizer

protected Tokenizer()
Method Detail

hasNext

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

pushBack

public final void pushBack(int count)

peek

public final Token peek()

next

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

remove

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

pushBack

public final void pushBack()

parse

protected abstract Token parse()

getIndex

public final int getIndex()

getDelimiter

public abstract Delimiter getDelimiter()


Copyright © 2014 eXo Platform SAS. All Rights Reserved.