| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Map | |
| private final List | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| public Map | Returns: the declared options as a mapGives all declared options as a map of string to OptionSpec. |
| private <V> List | |
| private static Map | |
| private <V> List | |
| public boolean | equals(Object that)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public boolean | |
| public boolean | Returns: true if the option was detectedthe option to search for option)Tells whether the given option was detected. |
| public boolean | Returns: true if the option was detected and at least one argument was detected for the optionthe option to search for option)Tells whether there are any arguments associated with the given option. |
| public boolean | Returns: true if the option was detected and at least one argument was detected for the optionthe option to search for option)Tells whether there are any arguments associated with the given option. |
| public int | |
| public boolean | |
| public List | |
| public List | Returns: the set of detected command line optionsGives the set of options that were detected, in the form of OptionSpecs, in the order in which the options were found on the command line. |
| public Object | |
| public < represents the type of the arguments the given option accepts V> V | Returns: the argument of the given option;null if no argument is present, or that option was not
detectedthe option to search for option)Gives the argument associated with the given option. |
| public List | |
| public < represents the type of the arguments the given option accepts V> List | Returns: the arguments associated with the option; an empty list if no such arguments are present, or if the option was not detectedthe option to search for option)Gives any arguments associated with the given option. |
| defaultValues | back to summary |
|---|---|
| private final Map<String, List<?>> defaultValues | |
| detectedOptions | back to summary |
|---|---|
| private final Map<String, AbstractOptionSpec<?>> detectedOptions | |
| detectedSpecs | back to summary |
|---|---|
| private final List<OptionSpec<?>> detectedSpecs | |
| optionsToArguments | back to summary |
|---|---|
| private final Map<AbstractOptionSpec<?>, List<String>> optionsToArguments | |
| recognizedSpecs | back to summary |
|---|---|
| private final Map<String, AbstractOptionSpec<?>> recognizedSpecs | |
| OptionSet | back to summary |
|---|---|
| pack-priv OptionSet(Map<String, AbstractOptionSpec<?>> recognizedSpecs) | |
| add | back to summary |
|---|---|
| pack-priv void add(AbstractOptionSpec<?> spec) | |
| addWithArgument | back to summary |
|---|---|
| pack-priv void addWithArgument(AbstractOptionSpec<?> spec, String argument) | |
| asMap | back to summary |
|---|---|
| public Map Gives all declared options as a map of string to OptionSpec.
| |
| defaultValueFor | back to summary |
|---|---|
| private <V> List | |
| defaultValues | back to summary |
|---|---|
| private static Map | |
| defaultValuesFor | back to summary |
|---|---|
private <V> List
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object that) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| has | back to summary |
|---|---|
| public boolean has(String option) Tells whether the given option was detected.
| |
| has | back to summary |
|---|---|
| public boolean has(OptionSpec<?> option) Tells whether the given option was detected. This method recognizes only instances of options returned from the fluent interface methods. Specifying a ArgumentAcceptingOptionSpec#defaultsTo(Object, Object[]) default argument value}
for an option does not cause this method to return
| |
| hasArgument | back to summary |
|---|---|
| public boolean hasArgument(String option) Tells whether there are any arguments associated with the given option.
| |
| hasArgument | back to summary |
|---|---|
| public boolean hasArgument(OptionSpec<?> option) Tells whether there are any arguments associated with the given option. This method recognizes only instances of options returned from the fluent interface methods. Specifying a default argument value
for an option does not cause this method to return
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasOptions | back to summary |
|---|---|
| public boolean hasOptions() Tells whether any options were detected.
| |
| nonOptionArguments | back to summary |
|---|---|
public List
| |
| specs | back to summary |
|---|---|
| public List Gives the set of options that were detected, in the form of OptionSpecs, in the order in which the options were found on the command line.
| |
| valueOf | back to summary |
|---|---|
| public Object valueOf(String option) Gives the argument associated with the given option. If the option was given an argument type, the argument
will take on that type; otherwise, it will be a Specifying a default argument value for an option will cause this method to return that default value even if the option was not detected on the command line, or if the option can take an optional argument but did not have one on the command line.
| |
| valueOf | back to summary |
|---|---|
| public <V> V valueOf(OptionSpec<V> option) Gives the argument associated with the given option. This method recognizes only instances of options returned from the fluent interface methods.
| |
| valuesOf | back to summary |
|---|---|
| public List Gives any arguments associated with the given option. If the option was given an argument type, the
arguments will take on that type; otherwise, they will be
| |
| valuesOf | back to summary |
|---|---|
| public <V> List Gives any arguments associated with the given option. If the option was given an argument type, the
arguments will take on that type; otherwise, they will be This method recognizes only instances of options returned from the fluent interface methods.
| |