Translates a single argument string to a
org. instance which we can execute at
runtime with the remaining arguments of the parser.
| Modifier and Type | Field and Description |
|---|---|
| private final CmdLineParser |
| Access | Constructor and Description |
|---|---|
| public | SubcommandHandler(final CmdLineParser
a parser, final OptionDef org. object.a option, final Setter<? super TextBuiltin> org. object.a setter)org. object.Create a new handler for the command name. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getDefaultMetaVariable()
Implements abstract org. Gets the default meta variable name used to print the usage screen. |
| public int | parseArguments(Parameters
The rest of the arguments. This method can use this
object to access the arguments of the option if necessary.
The object is valid only during the method call. params)Implements abstract org. Called if the option that this owner recognizes is found. |
| clp | back to summary |
|---|---|
| private final CmdLineParser clp | |
| SubcommandHandler | back to summary |
|---|---|
| public SubcommandHandler(final CmdLineParser parser, final OptionDef option, final Setter<? super TextBuiltin> setter) Create a new handler for the command name. This constructor is used only by args4j.
| |
| getDefaultMetaVariable | back to summary |
|---|---|
| public String getDefaultMetaVariable() Implements abstract org. Doc from org. Gets the default meta variable name used to print the usage screen.
The value returned by this method can be a reference in the
| |
| parseArguments | back to summary |
|---|---|
| public int parseArguments(Parameters params) throws CmdLineException Implements abstract org. Doc from org. Called if the option that this owner recognizes is found.
| |