| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: the closure to convert this option's argument(s)A conversion closure to convert the incoming String into the desired object |
| public String | Returns: the default value for this optionThe default value for this option as a String; subject to type conversion and 'convert'. |
| public String | |
| public String | |
| public int | |
| public String | Returns: the number of arguments (as a String)How many arguments this option has represented as a String. |
| public boolean | Returns: true if this array-typed option can have an optional argument (i.e. could be empty)Whether this option can have an optional argument. |
| public String | |
| public String | Returns: the value separator for this multi-valued optionThe value separator for this multi-valued option. |
| convert | back to summary |
|---|---|
| public Class A conversion closure to convert the incoming String into the desired object
| |
| defaultValue | back to summary |
|---|---|
| public String defaultValue() The default value for this option as a String; subject to type conversion and 'convert'. Ignored for Boolean options.
| |
| description | back to summary |
|---|---|
| public String description() The description of this option
| |
| longName | back to summary |
|---|---|
| public String longName() The long name of this option. Defaults to the name of member being annotated.
| |
| numberOfArguments | back to summary |
|---|---|
| public int numberOfArguments() How many arguments this option has.
A value greater than 1 is only allowed for array-typed arguments.
Ignored for boolean options which are assumed to have a default of 0
or if
| |
| numberOfArgumentsString | back to summary |
|---|---|
| public String numberOfArgumentsString() How many arguments this option has represented as a String.
Only allowed for array-typed arguments.
Overrides
| |
| optionalArg | back to summary |
|---|---|
| public boolean optionalArg() Whether this option can have an optional argument. Only supported for array-typed arguments to indicate that the array may be empty.
| |
| shortName | back to summary |
|---|---|
| public String shortName() The short name of this option. Defaults to the name of member being annotated if the longName is empty.
| |
| valueSeparator | back to summary |
|---|---|
| public String valueSeparator() The value separator for this multi-valued option. Only allowed for array-typed arguments.
| |