org.crsh.cli.impl.parser
Class Event.Option

java.lang.Object
  extended by org.crsh.cli.impl.parser.Event
      extended by org.crsh.cli.impl.parser.Event.Parameter<Token.Literal.Word,OptionDescriptor>
          extended by org.crsh.cli.impl.parser.Event.Option
Enclosing class:
Event

public static final class Event.Option
extends Event.Parameter<Token.Literal.Word,OptionDescriptor>


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
private  Token.Literal.Option token
          .
 
Fields inherited from class org.crsh.cli.impl.parser.Event.Parameter
command, parameter, values
 
Constructor Summary
Event.Option(CommandDescriptor<?> command, OptionDescriptor descriptor, Token.Literal.Option token, List<Token.Literal.Word> values)
           
 
Method Summary
 int getFrom()
           
 int getTo()
           
 Token.Literal.Option getToken()
           
 
Methods inherited from class org.crsh.cli.impl.parser.Event.Parameter
getCommand, getParameter, getStrings, getValues, peekFirst, peekLast, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

token

private final Token.Literal.Option token
.

Constructor Detail

Event.Option

Event.Option(CommandDescriptor<?> command,
             OptionDescriptor descriptor,
             Token.Literal.Option token,
             List<Token.Literal.Word> values)
Method Detail

getToken

public final Token.Literal.Option getToken()

getFrom

public int getFrom()
Specified by:
getFrom in class Event.Parameter<Token.Literal.Word,OptionDescriptor>

getTo

public int getTo()
Specified by:
getTo in class Event.Parameter<Token.Literal.Word,OptionDescriptor>


Copyright © 2014 eXo Platform SAS. All Rights Reserved.