org.crsh.cli.impl.parser
Class Parser<T>

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

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


Field Summary
private  CommandDescriptor<T> command
          .
private  String mainName
          .
private  Mode mode
          .
private  LinkedList<Event> next
          .
private  Status status
          .
private  Tokenizer tokenizer
          .
 
Constructor Summary
Parser(Tokenizer tokenizer, CommandDescriptor<T> command, String mainName, Mode mode)
           
 
Method Summary
private  void determine()
           
 Delimiter getDelimiter()
           
(package private)  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
 

Field Detail

tokenizer

private final Tokenizer tokenizer
.


mainName

private final String mainName
.


mode

private final Mode mode
.


command

private CommandDescriptor<T> command
.


status

private Status status
.


next

private final LinkedList<Event> next
.

Constructor Detail

Parser

public Parser(Tokenizer tokenizer,
              CommandDescriptor<T> command,
              String mainName,
              Mode mode)
Method Detail

getStatus

Status getStatus()

getDelimiter

public Delimiter getDelimiter()

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>

determine

private void determine()


Copyright © 2014 eXo Platform SAS. All Rights Reserved.