Uses of Class
org.kohsuke.args4j.spi.OptionHandler
Packages that use OptionHandler
Package
Description
Core classes of the Args4J command line parser.
Classes for extending the behavior of args4j.
-
Uses of OptionHandler in org.kohsuke.args4j
Methods in org.kohsuke.args4j that return OptionHandlerModifier and TypeMethodDescriptionprotected OptionHandlerCmdLineParser.createOptionHandler(OptionDef o, Setter setter) protected OptionHandlerOptionHandlerRegistry.createOptionHandler(CmdLineParser parser, OptionDef o, Setter setter) OptionHandlerRegistry.OptionHandlerFactory.getHandler(CmdLineParser parser, OptionDef o, Setter setter) Provide a handler instance to use.Methods in org.kohsuke.args4j that return types with arguments of type OptionHandlerModifier and TypeMethodDescriptionCmdLineParser.getArguments()Lists up all the defined arguments in the order.CmdLineParser.getOptions()Lists up all the defined options.Class<? extends OptionHandler> OptionDef.handler()Methods in org.kohsuke.args4j with parameters of type OptionHandlerModifier and TypeMethodDescriptionprotected voidCmdLineParser.printOption(PrintWriter out, OptionHandler handler, int len, ResourceBundle rb, OptionHandlerFilter filter) Prints usage information for a given option.booleanOptionHandlerFilter.select(OptionHandler o) Method parameters in org.kohsuke.args4j with type arguments of type OptionHandlerModifier and TypeMethodDescriptionParserProperties.withOptionSorter(Comparator<OptionHandler> sorter) Controls how options are sorted in the usage screen.Constructor parameters in org.kohsuke.args4j with type arguments of type OptionHandlerModifierConstructorDescriptionprotectedOptionDef(String usage, String metaVar, boolean required, boolean help, boolean hidden, Class<? extends OptionHandler> handler, boolean multiValued) -
Uses of OptionHandler in org.kohsuke.args4j.spi
Subclasses of OptionHandler in org.kohsuke.args4j.spiModifier and TypeClassDescriptionclassBooleanOptionHandler.classclassclassPartialOptionHandlerimplementation that takes a single value to the option, which is then gets split into individual tokens using fixed delimiter.classclassEnumOptionHandler<T extends Enum<T>>classBooleanOptionHandlerthat (unlike the standardBooleanOptionHandlerallows values to be set to false explicitly (using e.g.classclassclassclassclassclassOptionHandlerthat parses MAC address to byte[] of length 6.classParses options into aMap.classTakes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection ofFile.classTakes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection ofPath.classOptionHandler which handles an option with exactly one argument, like "-foo bar".classTakes a single argument to the option and maps that toPath.classA regex option handler.classEagerly grabs all the arguments.classclassOptionHandlerfor the option terminator --.classAnOptionHandlerfor greedily mapping a list of tokens into a collection ofStrings (such asString[],List<String>, etc.).classStringOptionHandler.classOptionHandlerused withArgumentfor parsing typical "sub-command" pattern.classclassclassFields in org.kohsuke.args4j.spi with type parameters of type OptionHandlerMethods in org.kohsuke.args4j.spi that return types with arguments of type OptionHandler