@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface Option
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class |
convert
A conversion closure to convert the incoming String into the desired object
|
java.lang.String |
defaultValue
The default value for this option as a String; subject to type conversion and 'convert'.
|
java.lang.String |
description
The description of this option
|
java.lang.String |
longName
The long name of this option.
|
int |
numberOfArguments
How many arguments this option has.
|
java.lang.String |
numberOfArgumentsString
How many arguments this option has represented as a String.
|
boolean |
optionalArg
Whether this option can have an optional argument.
|
java.lang.String |
shortName
The short name of this option.
|
java.lang.String |
valueSeparator
The value separator for this multi-valued option.
|
public abstract java.lang.String description
public abstract java.lang.String shortName
public abstract java.lang.String longName
public abstract java.lang.String valueSeparator
public abstract boolean optionalArg
public abstract int numberOfArguments
numberOfArgumentsString
is set.public abstract java.lang.String numberOfArgumentsString
numberOfArguments
if set.
The special values of '+' means one or more and '*' as 0 or more.