Package org.kohsuke.args4j.spi
Classes for extending the behavior of args4j.
-
Interface Summary Interface Description Getter<T> Interface that can be instantiated to get default values.Parameters List of arguments.Setter<T> Abstraction of the value setter. -
Class Summary Class Description AnnotationImpl Base class for the @Option and @Argument implementation classes.ArgumentImpl Implementation of @Argument so we can instantiate it.BooleanOptionHandler BooleanOptionHandler
.ByteOptionHandler CharOptionHandler ConfigElement The ConfigElement is an <option> or <argument> tag in the xml configuration file.DelimitedOptionHandler<T> PartialOptionHandler
implementation that takes a single value to the option, which is then gets split into individual tokens using fixed delimiter.DoubleOptionHandler Double
OptionHandler
.EnumOptionHandler<T extends java.lang.Enum<T>> Enum
OptionHandler
.ExplicitBooleanOptionHandler BooleanOptionHandler
that (unlike the standardBooleanOptionHandler
allows values to be set to false explicitly (using e.g.FieldSetter Setter
that sets to aField
.FileOptionHandler File
OptionHandler
.FloatOptionHandler InetAddressOptionHandler InetAddress
OptionHandler
.IntOptionHandler Integer
OptionHandler
.LongOptionHandler MacAddressOptionHandler OptionHandler
that parses MAC address to byte[] of length 6.MapOptionHandler Parses options into aMap
.MethodSetter Setter
that sets to aMethod
.MultiFileOptionHandler Takes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection ofFile
.MultiPathOptionHandler Takes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection ofPath
.OneArgumentOptionHandler<T> OptionHandler which handles an option with exactly one argument, like "-foo bar".OptionHandler<T> Code that parses operands of an option into Java.OptionImpl Implementation of @Option so we can instantiate it.PathOptionHandler Takes a single argument to the option and maps that toPath
.PatternOptionHandler A regex option handler.RestOfArgumentsHandler Eagerly grabs all the arguments.Setters Factory ofSetter
s.ShortOptionHandler StopOptionHandler OptionHandler
for the option terminator --.StringArrayOptionHandler AnOptionHandler
for greedily mapping a list of tokens into a collection ofString
s (such asString[]
,List<String>
, etc.).StringOptionHandler StringOptionHandler
.SubCommandHandler OptionHandler
used withArgument
for parsing typical "sub-command" pattern.URIOptionHandler URI
OptionHandler
.URLOptionHandler URL
OptionHandler
.UuidOptionHandler UUID
OptionHandler
. -
Enum Summary Enum Description Messages -
Annotation Types Summary Annotation Type Description SubCommand Specifies a single sub-command.SubCommands Collection ofSubCommand
s that define possible sub-commands.