Uses of Class
org.kohsuke.args4j.spi.OptionHandler
-
Packages that use OptionHandler Package Description org.kohsuke.args4j Core classes of the Args4J command line parser.org.kohsuke.args4j.spi Classes for extending the behavior of args4j. -
-
Uses of OptionHandler in org.kohsuke.args4j
Methods in org.kohsuke.args4j that return OptionHandler Modifier and Type Method Description protected OptionHandler
CmdLineParser. createOptionHandler(OptionDef o, Setter setter)
protected OptionHandler
OptionHandlerRegistry. createOptionHandler(CmdLineParser parser, OptionDef o, Setter setter)
OptionHandler<?>
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 OptionHandler Modifier and Type Method Description java.util.List<OptionHandler>
CmdLineParser. getArguments()
Lists up all the defined arguments in the order.java.util.List<OptionHandler>
CmdLineParser. getOptions()
Lists up all the defined options.java.lang.Class<? extends OptionHandler>
handler()
SeeOption.handler()
.java.lang.Class<? extends OptionHandler>
handler()
Specify theOptionHandler
that processes the command line arguments.java.lang.Class<? extends OptionHandler>
OptionDef. handler()
Methods in org.kohsuke.args4j with parameters of type OptionHandler Modifier and Type Method Description protected void
CmdLineParser. printOption(java.io.PrintWriter out, OptionHandler handler, int len, java.util.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 OptionHandler Modifier and Type Method Description ParserProperties
ParserProperties. withOptionSorter(java.util.Comparator<OptionHandler> sorter)
Controls how options are sorted in the usage screen.Constructor parameters in org.kohsuke.args4j with type arguments of type OptionHandler Constructor Description OptionDef(java.lang.String usage, java.lang.String metaVar, boolean required, boolean help, boolean hidden, java.lang.Class<? extends OptionHandler> handler, boolean multiValued)
-
Uses of OptionHandler in org.kohsuke.args4j.spi
Subclasses of OptionHandler in org.kohsuke.args4j.spi Modifier and Type Class Description class
BooleanOptionHandler
BooleanOptionHandler
.class
ByteOptionHandler
class
CharOptionHandler
class
DelimitedOptionHandler<T>
PartialOptionHandler
implementation that takes a single value to the option, which is then gets split into individual tokens using fixed delimiter.class
DoubleOptionHandler
Double
OptionHandler
.class
EnumOptionHandler<T extends java.lang.Enum<T>>
Enum
OptionHandler
.class
ExplicitBooleanOptionHandler
BooleanOptionHandler
that (unlike the standardBooleanOptionHandler
allows values to be set to false explicitly (using e.g.class
FileOptionHandler
File
OptionHandler
.class
FloatOptionHandler
class
InetAddressOptionHandler
InetAddress
OptionHandler
.class
IntOptionHandler
Integer
OptionHandler
.class
LongOptionHandler
class
MacAddressOptionHandler
OptionHandler
that parses MAC address to byte[] of length 6.class
MapOptionHandler
Parses options into aMap
.class
MultiFileOptionHandler
Takes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection ofFile
.class
MultiPathOptionHandler
Takes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection ofPath
.class
OneArgumentOptionHandler<T>
OptionHandler which handles an option with exactly one argument, like "-foo bar".class
PathOptionHandler
Takes a single argument to the option and maps that toPath
.class
PatternOptionHandler
A regex option handler.class
RestOfArgumentsHandler
Eagerly grabs all the arguments.class
ShortOptionHandler
class
StopOptionHandler
OptionHandler
for the option terminator --.class
StringArrayOptionHandler
AnOptionHandler
for greedily mapping a list of tokens into a collection ofString
s (such asString[]
,List<String>
, etc.).class
StringOptionHandler
StringOptionHandler
.class
SubCommandHandler
OptionHandler
used withArgument
for parsing typical "sub-command" pattern.class
URIOptionHandler
URI
OptionHandler
.class
URLOptionHandler
URL
OptionHandler
.class
UuidOptionHandler
UUID
OptionHandler
.Fields in org.kohsuke.args4j.spi with type parameters of type OptionHandler Modifier and Type Field Description java.lang.Class<? extends OptionHandler>
AnnotationImpl. handler
Methods in org.kohsuke.args4j.spi that return types with arguments of type OptionHandler Modifier and Type Method Description java.lang.Class<? extends OptionHandler>
AnnotationImpl. handler()
-