|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ShellCommand
Interface implemented by all shell commands.
| Method Summary | |
|---|---|
void |
execute()
Called to execute the command. |
void |
print(String formattedMessage,
Object... params)
Prints the given message to the output stream. |
void |
printHelp()
Prints the help text for this command. |
void |
printUsage()
Prints the usage help for this command. |
void |
setArguments(Arguments arguments)
Sets the arguments that can be used by this command. |
void |
setContext(ShellContext context)
The shell context. |
void |
setOutput(Writer output)
Configure the command's output. |
int |
tabCompletion(String lastArgument,
List<CharSequence> candidates)
Handle tab completion for the command. |
| Method Detail |
|---|
void setArguments(Arguments arguments)
arguments - void setOutput(Writer output)
output - void setContext(ShellContext context)
context -
void execute()
throws Exception
Exceptionvoid printUsage()
void printHelp()
void print(String formattedMessage,
Object... params)
formattedMessage - params -
int tabCompletion(String lastArgument,
List<CharSequence> candidates)
lastArgument - candidates -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||