org.crsh.cli.impl.parser
Class Event.Parameter<T extends Token.Literal,D extends ParameterDescriptor>

java.lang.Object
  extended by org.crsh.cli.impl.parser.Event
      extended by org.crsh.cli.impl.parser.Event.Parameter<T,D>
Direct Known Subclasses:
Event.Argument, Event.Option
Enclosing class:
Event

public abstract static class Event.Parameter<T extends Token.Literal,D extends ParameterDescriptor>
extends Event


Nested Class Summary
 
Nested classes/interfaces inherited from class org.crsh.cli.impl.parser.Event
Event.Argument, Event.Option, Event.Parameter<T extends Token.Literal,D extends ParameterDescriptor>, Event.Separator, Event.Stop, Event.Subordinate
 
Field Summary
protected  CommandDescriptor<?> command
          .
protected  D parameter
          .
protected  List<T> values
          .
 
Constructor Summary
Event.Parameter(CommandDescriptor<?> command, D parameter, List<T> values)
           
 
Method Summary
 CommandDescriptor<?> getCommand()
           
abstract  int getFrom()
           
 D getParameter()
           
 List<String> getStrings()
           
abstract  int getTo()
           
 List<T> getValues()
           
 T peekFirst()
           
 T peekLast()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

command

protected final CommandDescriptor<?> command
.


parameter

protected final D extends ParameterDescriptor parameter
.


values

protected final List<T extends Token.Literal> values
.

Constructor Detail

Event.Parameter

public Event.Parameter(CommandDescriptor<?> command,
                       D parameter,
                       List<T> values)
Method Detail

getCommand

public CommandDescriptor<?> getCommand()

getParameter

public final D getParameter()

getValues

public final List<T> getValues()

peekFirst

public final T peekFirst()

peekLast

public final T peekLast()

getStrings

public final List<String> getStrings()

getFrom

public abstract int getFrom()

getTo

public abstract int getTo()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 eXo Platform SAS. All Rights Reserved.