org.crsh.cmdline.matcher.impl
Class Parser<T>

java.lang.Object
  extended by org.crsh.cmdline.matcher.impl.Parser<T>
All Implemented Interfaces:
Iterator<Event>

public final class Parser<T>
extends Object
implements Iterator<Event>

Version:
$Revision$
Author:
Julien Viet

Nested Class Summary
static class Parser.Mode
           
 
Constructor Summary
Parser(org.crsh.cmdline.matcher.impl.Tokenizer tokenizer, ClassDescriptor<T> command, String mainName, Parser.Mode mode)
           
 
Method Summary
 int getIndex()
           
 Parser.Mode getMode()
           
 org.crsh.cmdline.matcher.impl.Parser.Status getStatus()
           
 boolean hasNext()
           
 Event next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(org.crsh.cmdline.matcher.impl.Tokenizer tokenizer,
              ClassDescriptor<T> command,
              String mainName,
              Parser.Mode mode)
Method Detail

getMode

public Parser.Mode getMode()

getIndex

public int getIndex()

getStatus

public org.crsh.cmdline.matcher.impl.Parser.Status getStatus()

hasNext

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

next

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

remove

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


Copyright © 2011 eXo Platform SAS. All Rights Reserved.