|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandExecutor
Provides the ability to execute commands.
| Method Summary | |
|---|---|
Object |
execute(Shell shell,
Object... args)
Execute a pre-processed command-line. |
Object |
execute(Shell shell,
String line)
Execute a command-line, parsing out valid recognized syntax. |
Object |
execute(Shell shell,
String command,
Object[] args)
Execute command name/path with the given arguments. |
| Method Detail |
|---|
Object execute(Shell shell,
String line)
throws Exception
shell - The executing shell.line - Raw command-line to parse and execute.
Exception - Command-line execution failed.
Object execute(Shell shell,
String command,
Object[] args)
throws Exception
shell - The executing shell.command - Name of the command/path to execute.args - Command arguments.
Exception - Command-line execution failed.
Object execute(Shell shell,
Object... args)
throws Exception
shell - The executing shell.args - Command arguments, first argument is expected to be the command/path to execute.
Exception - Command-line execution failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||