CommandClearCommand, HelpCommand, PauseCommand, QuitCommand, RestartCommand, ResumeCommand, SysInfoCommand, TransletCommand, VerboseCommandpublic abstract class AbstractCommand extends java.lang.Object implements Command
Command.Descriptor| Constructor | Description |
|---|---|
AbstractCommand(CommandRegistry registry) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addOption(Option option) |
|
CommandRegistry |
getCommandRegistry() |
|
Console |
getConsole() |
|
ShellService |
getService() |
|
protected ParsedOptions |
parse(java.lang.String[] args) |
|
void |
printUsage() |
Prints the usage statement for the specified command.
|
void |
printUsage(Console console) |
Prints the usage statement for the specified command.
|
execute, getDescriptorprotected final Options options
public AbstractCommand(CommandRegistry registry)
public ShellService getService()
public Console getConsole()
public CommandRegistry getCommandRegistry()
protected void addOption(Option option)
protected ParsedOptions parse(java.lang.String[] args) throws OptionParserException
OptionParserExceptionpublic void printUsage()
CommandprintUsage in interface Commandpublic void printUsage(Console console)
CommandprintUsage in interface Commandconsole - the Console instanceCopyright © 2008–2018 The Aspectran Project. All rights reserved.