Object of this interface is passed to
OptionHandlers to make it easy/safe to parse
additional parameters for options.
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: Always return non-null valid String. If an attempt is
made to access a non-existent index, this method throws
appropriate org..specifying 0 will retrieve the token next to the option.
For example, if the command line looks like idx)-o abc -d x,
then getParameter(0) for -o returns abc
and getParameter(1) will return -d.Gets the additional parameter to this option. |
| public int |
| getParameter | back to summary |
|---|---|
| public String getParameter(int idx) throws CmdLineException Gets the additional parameter to this option.
| |
| size | back to summary |
|---|---|
| public int size() Number of remaining tokens. | |