| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | assigned
Keep track of whether a value was added to flag an error |
| private ResourceBundle | |
| private Object | |
| private String | |
| private DynamicParameter | |
| private JCommander | |
| private String | longestName
Longest of the names(), used to present usage() alphabetically |
| private Object | |
| private Parameter | |
| private Parameterized | parameterized
The field/method |
| private WrappedParameter |
| Access | Constructor and Description |
|---|---|
| public | ParameterDescription(Object object, DynamicParameter annotation, Parameterized parameterized, ResourceBundle bundle, JCommander jc)
|
| public | ParameterDescription(Object object, Parameter annotation, Parameterized parameterized, ResourceBundle bundle, JCommander jc)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| pack-priv Object | |
| private boolean | |
| private ResourceBundle | |
| private List | |
| public Object | |
| public String | |
| public String | |
| public String | |
| public Object | |
| public WrappedParameter | |
| public Parameter | |
| public Parameterized | |
| private Object | handleSubParameters(String value, int currentIndex, Class<?> type, List<ParameterDescription.
|
| private void | init(Object
the object defining the command-line arguments object, Parameterized the wrapper for the field or method annotated with \@Parameter this represents parameterized, ResourceBundle the locale bundle, JCommander the parent JCommander instance jCommander)Initializes the state of this parameter description. |
| private void | |
| public boolean | |
| public boolean | |
| private boolean | |
| public boolean | |
| private boolean | |
| public boolean | |
| private Collection | |
| private void | |
| public void | |
| public String | |
| private void | |
| private void | |
| public void | |
| pack-priv void | |
| public void |
| assigned | back to summary |
|---|---|
| private boolean assigned Keep track of whether a value was added to flag an error | |
| bundle | back to summary |
|---|---|
| private ResourceBundle bundle | |
| defaultObject | back to summary |
|---|---|
| private Object defaultObject | |
| description | back to summary |
|---|---|
| private String description | |
| dynamicParameterAnnotation | back to summary |
|---|---|
| private DynamicParameter dynamicParameterAnnotation | |
| jCommander | back to summary |
|---|---|
| private JCommander jCommander | |
| longestName | back to summary |
|---|---|
| private String longestName Longest of the names(), used to present usage() alphabetically | |
| object | back to summary |
|---|---|
| private Object object | |
| parameterAnnotation | back to summary |
|---|---|
| private Parameter parameterAnnotation | |
| parameterized | back to summary |
|---|---|
| private Parameterized parameterized The field/method | |
| wrappedParameter | back to summary |
|---|---|
| private WrappedParameter wrappedParameter | |
| ParameterDescription | back to summary |
|---|---|
| public ParameterDescription(Object object, DynamicParameter annotation, Parameterized parameterized, ResourceBundle bundle, JCommander jc) | |
| ParameterDescription | back to summary |
|---|---|
| public ParameterDescription(Object object, Parameter annotation, Parameterized parameterized, ResourceBundle bundle, JCommander jc) | |
| addValue | back to summary |
|---|---|
| public void addValue(String value) | |
| addValue | back to summary |
|---|---|
| public void addValue(String value, boolean isDefault) Add the specified value to the field. First, validate the value if a validator was specified. Then look up any field converter, then any type converter, and if we can't find any, throw an exception. | |
| addValue | back to summary |
|---|---|
| pack-priv Object addValue(String name, String value, boolean isDefault, boolean validate, int currentIndex) | |
| fieldIsSetForTheFirstTime | back to summary |
|---|---|
| private boolean fieldIsSetForTheFirstTime(boolean isDefault) | |
| findResourceBundle | back to summary |
|---|---|
| private ResourceBundle findResourceBundle(Object o) Find the resource bundle in the annotations.
| |
| findSubParameters | back to summary |
|---|---|
| private List | |
| getDefault | back to summary |
|---|---|
| public Object getDefault() | |
| getDescription | back to summary |
|---|---|
| public String getDescription() | |
| getLongestName | back to summary |
|---|---|
| public String getLongestName() | |
| getNames | back to summary |
|---|---|
| public String getNames() | |
| getObject | back to summary |
|---|---|
| public Object getObject() | |
| getParameter | back to summary |
|---|---|
| public WrappedParameter getParameter() | |
| getParameterAnnotation | back to summary |
|---|---|
| public Parameter getParameterAnnotation() | |
| getParameterized | back to summary |
|---|---|
| public Parameterized getParameterized() | |
| handleSubParameters | back to summary |
|---|---|
| private Object handleSubParameters(String value, int currentIndex, Class<?> type, List<ParameterDescription. | |
| init | back to summary |
|---|---|
| private void init(Object object, Parameterized parameterized, ResourceBundle bundle, JCommander jCommander) Initializes the state of this parameter description. This will set an appropriate bundle if it is null<. If its the description in is empty and it refers to an enum type, then the description will be set to its possible values. It will also attempt to validate the default value of the parameter.
| |
| initDescription | back to summary |
|---|---|
| private void initDescription(String description, String descriptionKey, String[] names) | |
| isAssigned | back to summary |
|---|---|
public boolean isAssigned()
| |
| isDynamicParameter | back to summary |
|---|---|
| public boolean isDynamicParameter() | |
| isEmpty | back to summary |
|---|---|
| private boolean isEmpty(String s) | |
| isHelp | back to summary |
|---|---|
| public boolean isHelp() | |
| isMultiOption | back to summary |
|---|---|
| private boolean isMultiOption() | |
| isNonOverwritableForced | back to summary |
|---|---|
| public boolean isNonOverwritableForced() | |
| newCollection | back to summary |
|---|---|
private Collection
| |
| p | back to summary |
|---|---|
| private void p(String string) | |
| setAssigned | back to summary |
|---|---|
| public void setAssigned(boolean b) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| validateDefaultValues | back to summary |
|---|---|
| private void validateDefaultValues(String[] names) | |
| validateParameter | back to summary |
|---|---|
| private void validateParameter(String name, String value) | |
| validateParameter | back to summary |
|---|---|
| public void validateParameter(Class<? extends IParameterValidator> validator, String name, String value) | |
| validateValueParameter | back to summary |
|---|---|
| pack-priv void validateValueParameter(String name, Object value) | |
| validateValueParameter | back to summary |
|---|---|
| public void validateValueParameter(Class<? extends IValueValidator<T>> validator, String name, Object value) | |
| Access | Constructor and Description |
|---|---|
| public |
| SubParameterIndex | back to summary |
|---|---|
| public SubParameterIndex(int order, Field field) | |