|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.inria.myriads.snoozeclient.parser.api.impl.JCommanderCLI
public final class JCommanderCLI
Implementation of the JCommander based CLI. Based on the excellent Karl Heinz Marbaise tutorial: http://blog.soebes.de/index.php?/archives/241-Kommandozeile-und-Java.html https://github.com/khmarbaise/cli-test/tree/master/src/main/java/com/soebes/cli/cli_test
Constructor Summary | |
---|---|
JCommanderCLI()
Constructor. |
Method Summary | |
---|---|
AddCommand |
getAddCommand()
Returns the add command. |
ClientCommand |
getCommand()
Returns the parsed command. |
DefineCommand |
getDefineCommand()
Returns the define command. |
DestroyCommand |
getDestroyCommand()
Returns the destroy command. |
InfoCommand |
getInfoCommand()
Returns the info command. |
ListCommand |
getListCommand()
Returns the list command. |
RemoveCommand |
getRemoveCommand()
Returns the remove command. |
ResumeCommand |
getResumeCommand()
Returns the resume command. |
ShutdownCommand |
getShutdownCommand()
Returns the shutdown command. |
StartCommand |
getStartCommand()
Returns the start command. |
SuspendCommand |
getSuspendCommand()
Returns the suspend command. |
UndefineCommand |
getUndefineCommand()
Returns the undefine command. |
ParserOutput |
parse(String[] args)
Helper function to generate a ParserOutput object from the JCInputOptions content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCommanderCLI()
Method Detail |
---|
public ParserOutput parse(String[] args)
parse
in interface CommandLineParser
args
- Arguments to parse
public ClientCommand getCommand()
public AddCommand getAddCommand()
public RemoveCommand getRemoveCommand()
public DefineCommand getDefineCommand()
public UndefineCommand getUndefineCommand()
public StartCommand getStartCommand()
public ShutdownCommand getShutdownCommand()
public DestroyCommand getDestroyCommand()
public SuspendCommand getSuspendCommand()
public ResumeCommand getResumeCommand()
public InfoCommand getInfoCommand()
public ListCommand getListCommand()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |