|
antlraux package v0.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--antlraux.clparse.Command
A Command is the union of a
CommandSpec and a list of
parameters. It encapsulates one command in the command line.
Instances of Command are created by a
CommandLineParser during the parsing of the command line
| Field Summary | |
protected CommandSpec |
spec
|
| Constructor Summary | |
Command(CommandSpec spec,
java.lang.Object[] params)
Only constructor of the class |
|
| Method Summary | |
java.lang.Object |
execute()
This method "launches" a command. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected CommandSpec spec
| Constructor Detail |
public Command(CommandSpec spec,
java.lang.Object[] params)
throws CommandLineParserException
| Method Detail |
public java.lang.Object execute()
throws CommandLineParserException
Method
and executer of the CommandSpec.
Then it calls Method.invoke(Object, Object[])
using its parameters list.
Method.invoke(Object, Object[])
ExecutedMethodException - if Method.invoke(Object, Object[])
throws InvocationTargetException
CommandLineException - if any other error happens.
CommandLineParserException
|
antlraux package v0.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||