public class OptionDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
protected Class<?> |
declaringClass |
protected String |
fieldName |
protected String |
help |
protected String |
name |
protected OptionValue<?> |
option |
protected Class<?> |
type |
Constructor and Description |
---|
OptionDescriptor(String name,
Class<?> type,
String help,
Class<?> declaringClass,
String fieldName,
OptionValue<?> option) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getDeclaringClass() |
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.
|
OptionValue<?> |
getOptionValue()
Gets the boxed option value.
|
Class<?> |
getType()
Gets the type of values stored in the option.
|
protected final OptionValue<?> option
protected final Class<?> declaringClass
public OptionDescriptor(String name, Class<?> type, String help, Class<?> declaringClass, String fieldName, OptionValue<?> option)
public Class<?> getType()
public String getName()
public OptionValue<?> getOptionValue()
public Class<?> getDeclaringClass()
public String getFieldName()
public String getLocation()