Package com.aspectran.shell.command
Class AbstractCommand
java.lang.Object
com.aspectran.shell.command.AbstractCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
AspectCommand
,ClearCommand
,EchoCommand
,HelpCommand
,HistoryCommand
,JettyCommand
,JobCommand
,PBDecryptCommand
,PBEncryptCommand
,QuitCommand
,RestartCommand
,SysInfoCommand
,TransletCommand
,UndertowCommand
,VerboseCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.aspectran.shell.command.Command
Command.Descriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addArguments
(Arguments arguments) protected void
boolean
void
printHelp
(ShellConsole console) Prints the usage statement for the specified command.void
printQuickHelp
(ShellConsole console) protected void
protected Arguments
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aspectran.shell.command.Command
execute, getDescriptor
-
Constructor Details
-
AbstractCommand
-
-
Method Details
-
getCommandRegistry
-
getCommandRunner
-
getShellService
-
getActiveShellService
-
isServiceAvailable
public boolean isServiceAvailable() -
addOption
-
addArguments
-
touchArguments
-
skipParsingAtNonOption
protected void skipParsingAtNonOption() -
getOptions
- Specified by:
getOptions
in interfaceCommand
-
getArgumentsList
- Specified by:
getArgumentsList
in interfaceCommand
-
printHelp
Description copied from interface:Command
Prints the usage statement for the specified command. -
printQuickHelp
- Specified by:
printQuickHelp
in interfaceCommand
-