public final class OptionDescriptor extends Object
| Modifier and Type | Method and Description |
|---|---|
static OptionDescriptor |
create(String name,
OptionType optionType,
Class<?> optionValueType,
String help,
Class<?> declaringClass,
String fieldName,
OptionKey<?> option) |
static OptionDescriptor |
create(String name,
OptionType optionType,
Class<?> optionValueType,
String help,
Class<?> declaringClass,
String fieldName,
OptionKey<?> option,
boolean deprecated,
String deprecationMessage) |
static OptionDescriptor |
create(String name,
OptionType optionType,
Class<?> optionValueType,
String help,
String[] extraHelp,
Class<?> declaringClass,
String fieldName,
OptionKey<?> option) |
static OptionDescriptor |
create(String name,
OptionType optionType,
Class<?> optionValueType,
String help,
String[] extraHelp,
Class<?> declaringClass,
String fieldName,
OptionKey<?> option,
boolean deprecated,
String deprecationMessage) |
Class<?> |
getDeclaringClass() |
String |
getDeprecationMessage()
Returns the deprecation reason and the recommended replacement.
|
List<String> |
getExtraHelp()
Gets extra lines of help text.
|
String |
getFieldName() |
String |
getHelp()
Gets a descriptive help message for the option.
|
String |
getLocation()
Gets a description of the location where this option is stored.
|
String |
getName()
Gets the name of the option.
|
OptionKey<?> |
getOptionKey()
Gets the boxed option value.
|
OptionType |
getOptionType()
Gets the type of the option.
|
Class<?> |
getOptionValueType()
Gets the type of values stored in the option.
|
boolean |
isDeprecated()
Returns
true if the option is deprecated. |
public static OptionDescriptor create(String name, OptionType optionType, Class<?> optionValueType, String help, Class<?> declaringClass, String fieldName, OptionKey<?> option)
public static OptionDescriptor create(String name, OptionType optionType, Class<?> optionValueType, String help, Class<?> declaringClass, String fieldName, OptionKey<?> option, boolean deprecated, String deprecationMessage)
public static OptionDescriptor create(String name, OptionType optionType, Class<?> optionValueType, String help, String[] extraHelp, Class<?> declaringClass, String fieldName, OptionKey<?> option)
public static OptionDescriptor create(String name, OptionType optionType, Class<?> optionValueType, String help, String[] extraHelp, Class<?> declaringClass, String fieldName, OptionKey<?> option, boolean deprecated, String deprecationMessage)
public Class<?> getOptionValueType()
public String getHelp()
extra help lines.Option.help()public List<String> getExtraHelp()
public String getName()
public OptionType getOptionType()
public OptionKey<?> getOptionKey()
public Class<?> getDeclaringClass()
public String getFieldName()
public String getLocation()
public boolean isDeprecated()
true if the option is deprecated.public String getDeprecationMessage()