org.cyclopsgroup.jcli.jline
Class ArgumentsInspector

java.lang.Object
  extended by org.cyclopsgroup.jcli.jline.ArgumentsInspector

 class ArgumentsInspector
extends Object

Class that consumes arguments

Author:
Jiaqi Guo

Constructor Summary
ArgumentsInspector(ParsingContext context)
           
 
Method Summary
(package private)  void consume(String argument)
           
(package private)  void end()
          End the process
(package private)  Option getCurrentOption()
           
(package private)  String getCurrentValue()
           
(package private)  Set<Option> getRemainingOptions()
           
(package private)  ArgumentsInspectorState getState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgumentsInspector

ArgumentsInspector(ParsingContext context)
Parameters:
context - Parsing context
Method Detail

consume

void consume(String argument)
Parameters:
argument - Argument to consume

end

void end()
End the process


getCurrentOption

Option getCurrentOption()
Returns:
The option being processed currently

getCurrentValue

String getCurrentValue()
Returns:
Current value

getRemainingOptions

Set<Option> getRemainingOptions()
Returns:
Set of remaining options

getState

ArgumentsInspectorState getState()
Returns:
Current parsing state


Copyright © 2008-2010. All Rights Reserved.