Lines Matching defs:option

46     /** Does this option take a (separate) operand?
47 * @return true if this option takes a separate operand
51 /** Does argument string match option pattern?
53 * @return true if {@code arg} matches this option
57 /** Process an option with an argument.
59 * @param option the option to be processed
60 * @param arg the arg for the option to be processed
63 boolean process(Options options, String option, String arg);
65 /** Process the option with no argument.
67 * @param option the option to be processed
70 boolean process(Options options, String option);
85 /** This class represents an option recognized by the main program
101 /** Suffix option (-foo=bar or -foo:bar)
105 /** The kind of choices for this option, if any.
109 /** The choices for this option, if any, and whether or not the choices
155 public boolean matches(String option) {
157 return option.equals(name.optionName);
159 if (!option.startsWith(name.optionName))
163 String arg = option.substring(name.optionName.length());
177 /** Print a line of documentation describing this option, if standard.
211 /** Print a line of documentation describing this option, if non-standard.
216 /** Process the option (with arg). Return true if error detected.
218 public boolean process(Options options, String option, String arg) {
222 // some clients like to see just one of option+choice set
224 options.remove(option + s);
225 String opt = option + arg;
227 // some clients like to see option (without trailing ":")
229 String nm = option.substring(0, option.length() - 1);
232 // set option+word for each word in arg
234 String opt = option + a;
239 options.put(option, arg);
244 /** Process the option (without arg). Return true if error detected.
246 public boolean process(Options options, String option) {
248 return process(options, name.optionName, option.substring(name.optionName.length()));
250 return process(options, option, option);
258 /** A nonstandard or extended (-X) option
281 /** A hidden (implementor) option