- accept(String) - Method in class snaq.util.jclap.StringOption.FileFilter
-
Determines whether the string argument is valid as an option value.
- accept(String) - Method in interface snaq.util.jclap.StringOption.Filter
-
Determines whether the specified argument should be accepted for
use by the host StringOption instance.
- addBooleanOption(String, String, String, int, int) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Boolean.
- addBooleanOption(String, String, String, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Boolean.
- addBooleanOption(String, String, String) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Boolean
(single value allowed).
- addBooleanOption(String, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Boolean.
- addBooleanOption(String) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Boolean
(single value allowed).
- addDoubleOption(String, String, String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Double.
- addDoubleOption(String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Double.
- addEnumIntegerOption(String, String, String, boolean, boolean, int[]) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of enumerated Integer type.
- addEnumIntegerOption(String, String, String, int[]) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of enumerated Integer type
(single value allowed, non-mandatory).
- addEnumStringOption(String, String, String, boolean, boolean, String[], boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of enumerated String type.
- addEnumStringOption(String, String, String, boolean, boolean, String[]) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of enumerated String type
(case-insensitive string matching).
- addEnumStringOption(String, String, String, String[]) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of enumerated String type
(single value allowed, non-mandatory).
- addFileExistingOption(String, String, String, int, int) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type String which
refers to an existing file (which is not a folder).
- addFileExistingOption(String, String, String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type String which
refers to an existing file (which is not a folder).
- addFileNewOption(String, String, String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type String which
refers to a new or existing file/folder.
- addFileOption(String, String, String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type String which
refers to a file/folder.
- addFloatOption(String, String, String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Float.
- addFloatOption(String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Float.
- addFolderExistingOption(String, String, String, int, int) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type String which
refers to an existing folder.
- addFolderExistingOption(String, String, String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type String which
refers to an existing folder.
- addIntegerOption(String, String, String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Integer.
- addIntegerOption(String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Integer.
- addLongOption(String, String, String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Long.
- addLongOption(String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type Long.
- addOption(Option<T>) - Method in class snaq.util.jclap.CLAParser
-
Adds the specified Option to the list of those to be parsed
from the command-line arguments.
- addStringOption(String, String, String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type String.
- addStringOption(String, String, String) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type String
(single value allowed, non-mandatory).
- addStringOption(String, boolean, boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to add an Option of type String
(no long name, no description).
- addValue(E) - Method in class snaq.util.jclap.Option
-
Adds the specified value to the list of those parsed.
- allowedValues - Variable in class snaq.util.jclap.EnumeratedOption
-
Collection of allowed values for this enumeration.
- getAllowedValues() - Method in class snaq.util.jclap.EnumeratedOption
-
Returns an unmodifiable collection of the values that can be
assigned to this option.
- getAllowedValuesString(String, String, String) - Method in class snaq.util.jclap.EnumeratedOption
-
Returns a string denoting the values that can be assigned to this option.
- getAllowedValuesString(String, String) - Method in class snaq.util.jclap.EnumeratedOption
-
Returns a string denoting the values that can be assigned to this option.
- getAllowedValuesString() - Method in class snaq.util.jclap.EnumeratedOption
-
- getAllowedValuesString() - Method in class snaq.util.jclap.EnumeratedStringOption
-
Returns the default version of the string denoting the values that
can be assigned to this option ()
- getBooleanOptionValue(String, Boolean) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getBooleanOptionValue(String) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or false if the option was not set.
- getBooleanOptionValues(String) - Method in class snaq.util.jclap.CLAParser
-
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
- getDateFormat() - Method in class snaq.util.jclap.DateOption
-
- getDescription() - Method in class snaq.util.jclap.Option
-
Returns the description text of this Option.
- getDoubleOptionValue(String, Double) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getDoubleOptionValue(String) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getDoubleOptionValues(String) - Method in class snaq.util.jclap.CLAParser
-
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
- getFilter() - Method in class snaq.util.jclap.StringOption
-
Returns the StringOption.Filter for this instance.
- getFloatOptionValue(String, Float) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getFloatOptionValue(String) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getFloatOptionValues(String) - Method in class snaq.util.jclap.CLAParser
-
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
- getIntegerOptionValue(String, Integer) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getIntegerOptionValue(String) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getIntegerOptionValues(String) - Method in class snaq.util.jclap.CLAParser
-
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
- getLocalizedMessage() - Method in exception snaq.util.jclap.OptionException
-
- getLongName() - Method in class snaq.util.jclap.Option
-
Returns the long name of this option.
- getLongOptionValue(String, Long) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getLongOptionValue(String) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getLongOptionValues(String) - Method in class snaq.util.jclap.CLAParser
-
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
- getMaxCount() - Method in class snaq.util.jclap.Option
-
Returns the maximum value count for this option.
- getMessage() - Method in exception snaq.util.jclap.OptionException
-
- getMinCount() - Method in class snaq.util.jclap.Option
-
Returns the minimum value count for this option.
- getNonOptionArguments() - Method in class snaq.util.jclap.CLAParser
-
Returns a list of the non-option command-line arguments.
- getOption(String, Class<T>) - Method in class snaq.util.jclap.CLAParser
-
Returns the Option with the specified name (either short or long).
- getOptions() - Method in class snaq.util.jclap.CLAParser
-
Returns all the Option instances registered with the parser.
- getOptionValue(Option<T>) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the specified option,
or null if the option was not set.
- getOptionValue(Option<T>, T) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the specified option,
or the specified default value if the option was not set.
- getOptionValue(String, Class<T>, T) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getOptionValue(String, Class<T>) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or null if the option was not set,
equivalent to getOptionValue(optionName, type, null).
- getOptionValues(Option<T>) - Method in class snaq.util.jclap.CLAParser
-
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
- getOptionValues(String, Class<T>) - Method in class snaq.util.jclap.CLAParser
-
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
- getShortName() - Method in class snaq.util.jclap.Option
-
Returns the short name of this option.
- getStringOptionValue(String, String) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getStringOptionValue(String) - Method in class snaq.util.jclap.CLAParser
-
Convenience method to return the parsed value of the named option,
or the specified default value if the option was not set.
- getStringOptionValues(String) - Method in class snaq.util.jclap.CLAParser
-
Returns a list of all the parsed values for the specified option,
or an empty list if the option was not set.
- getType() - Method in class snaq.util.jclap.BooleanOption
-
- getType() - Method in class snaq.util.jclap.DateOption
-
- getType() - Method in class snaq.util.jclap.DoubleOption
-
- getType() - Method in class snaq.util.jclap.EnumeratedIntegerOption
-
- getType() - Method in class snaq.util.jclap.EnumeratedStringOption
-
- getType() - Method in class snaq.util.jclap.FloatOption
-
- getType() - Method in class snaq.util.jclap.IntegerOption
-
- getType() - Method in class snaq.util.jclap.LongOption
-
- getType() - Method in class snaq.util.jclap.Option
-
Returns the class type of value this option can take.
- getType() - Method in exception snaq.util.jclap.OptionException
-
Returns the type of this OptionException.
- getType() - Method in class snaq.util.jclap.StringOption
-
- getUsageTypeString() - Method in class snaq.util.jclap.BooleanOption
-
- getUsageTypeString() - Method in class snaq.util.jclap.DoubleOption
-
- getUsageTypeString() - Method in class snaq.util.jclap.FloatOption
-
- getUsageTypeString() - Method in class snaq.util.jclap.IntegerOption
-
- getUsageTypeString() - Method in class snaq.util.jclap.LongOption
-
- getUsageTypeString() - Method in class snaq.util.jclap.Option
-
Returns the option type, for display in the usage message.
- getValues() - Method in class snaq.util.jclap.Option
-
Returns the mapped value of the specified argument if it exists.
- parse(String[]) - Method in class snaq.util.jclap.CLAParser
-
Extract the option-mapped and unmapped arguments from the given array of
command-line arguments, using the specified locale.
- parsedSolitaryHyphen() - Method in class snaq.util.jclap.CLAParser
-
Returns whether a single - argument was found.
- parseOrig(String[]) - Method in class snaq.util.jclap.CLAParser
-
Extract the option-mapped and unmapped arguments from the given array of
command-line arguments, using the specified locale.
- ParserExample - Class in snaq.util.jclap.example
-
Example usage of
CLAParser class, showing how options may be added,
parsed, and referenced, along with a recommended exception-handling strategy.
- ParserExample() - Constructor for class snaq.util.jclap.example.ParserExample
-
- parseValue(String) - Method in class snaq.util.jclap.BooleanOption
-
Parsing of a flag option makes little sense.
- parseValue(String) - Method in class snaq.util.jclap.DateOption
-
- parseValue(String) - Method in class snaq.util.jclap.DoubleOption
-
Parses the argument string for an option value.
- parseValue(String) - Method in class snaq.util.jclap.EnumeratedIntegerOption
-
Parses the argument string for an option value.
- parseValue(String) - Method in class snaq.util.jclap.EnumeratedStringOption
-
Parses the argument string for an option value.
- parseValue(String) - Method in class snaq.util.jclap.FloatOption
-
Parses the argument string for an option value.
- parseValue(String) - Method in class snaq.util.jclap.IntegerOption
-
Parses the argument string for an option value.
- parseValue(String) - Method in class snaq.util.jclap.LongOption
-
Parses the argument string for an option value.
- parseValue(String) - Method in class snaq.util.jclap.Option
-
Parses the argument string for an option value.
- parseValue(String) - Method in class snaq.util.jclap.StringOption
-
- printUsage(PrintStream, boolean) - Method in class snaq.util.jclap.CLAParser
-
Prints the command-line usage message to the specified PrintStream,
making a guess at the application launch command.
- printUsage(PrintStream, boolean, String) - Method in class snaq.util.jclap.CLAParser
-
Prints the command-line usage message to the specified PrintStream.
- printUsage(PrintStream, boolean, String, String) - Method in class snaq.util.jclap.CLAParser
-
Prints the command-line usage message to the specified PrintStream.