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 OptionHandler
CmdLineParser.createOptionHandler
(OptionDef o, Setter setter) protected OptionHandler
OptionHandlerRegistry.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 void
CmdLineParser.printOption
(PrintWriter out, OptionHandler handler, int len, ResourceBundle rb, OptionHandlerFilter filter) Prints usage information for a given option.boolean
OptionHandlerFilter.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 OptionHandlerModifierConstructorDescriptionprotected
OptionDef
(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 TypeClassDescriptionclass
BooleanOptionHandler
.class
class
class
PartialOptionHandler
implementation that takes a single value to the option, which is then gets split into individual tokens using fixed delimiter.class
class
EnumOptionHandler<T extends Enum<T>>
class
BooleanOptionHandler
that (unlike the standardBooleanOptionHandler
allows values to be set to false explicitly (using e.g.class
class
class
class
class
class
OptionHandler
that parses MAC address to byte[] of length 6.class
Parses options into aMap
.class
Takes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection ofFile
.class
Takes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection ofPath
.class
OptionHandler which handles an option with exactly one argument, like "-foo bar".class
Takes a single argument to the option and maps that toPath
.class
A regex option handler.class
Eagerly grabs all the arguments.class
class
OptionHandler
for the option terminator --.class
AnOptionHandler
for greedily mapping a list of tokens into a collection ofString
s (such asString[]
,List<String>
, etc.).class
StringOptionHandler
.class
OptionHandler
used withArgument
for parsing typical "sub-command" pattern.class
class
class
Fields in org.kohsuke.args4j.spi with type parameters of type OptionHandlerMethods in org.kohsuke.args4j.spi that return types with arguments of type OptionHandler