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


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,
              Mode mode)
Method Detail

getStatus

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>

determine

private void determine()


Copyright © 2015 eXo Platform SAS. All Rights Reserved.