|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Definition of a shell command.
| Method Summary | |
String |
getArguments()
Get a description of the arguments for this command. |
String |
getDescription()
Get a short description for this command. |
int |
getMaxArgs()
Get the maximum number of arguments for this command. |
int |
getMinArgs()
Get the minimum number of arguments for this command. |
String |
getName()
Get the name of this command. |
void |
run(Shell shell,
List args,
List subst)
Execute this command in the specified shell with the specified arguments. |
| Method Detail |
public String getName()
public String getArguments()
public String getDescription()
public int getMinArgs()
public int getMaxArgs()
public void run(Shell shell,
List args,
List subst)
throws Throwable
The arguments are specified as a list of strings. Their
number is guaranteed to be consistent with the minimum and
maximum number returned by getMinArgs() and getMaxArgs().
The list of substitutions passed to this method provides the
arguments for replacing substitution tokens of the form
"%<number>" with an actual argument. This
method must perform substitution before using any argument.
shell - The shell.args - The arguments.subst - The substitutions (already performed).Throwable - Signals an exceptional condition when
executing this command.Shell.substitute(List,List),
Shell.substitute(String,List)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||