Package | Description |
---|---|
org.kohsuke.args4j |
Core classes of the Args4J command line parser.
|
org.kohsuke.args4j.spi |
Classes for extending the behavior of args4j.
|
Modifier and Type | Method and Description |
---|---|
protected OptionHandler |
OptionHandlerRegistry.createOptionHandler(CmdLineParser parser,
OptionDef o,
Setter setter)
|
protected OptionHandler |
CmdLineParser.createOptionHandler(OptionDef o,
Setter setter)
|
OptionHandler<?> |
OptionHandlerRegistry.OptionHandlerFactory.getHandler(CmdLineParser parser,
OptionDef o,
Setter setter)
Provide a handler instance to use.
|
Modifier and Type | Method and Description |
---|---|
List<OptionHandler> |
CmdLineParser.getArguments()
Lists up all the defined arguments in the order.
|
List<OptionHandler> |
CmdLineParser.getOptions()
Lists up all the defined options.
|
Class<? extends OptionHandler> |
OptionDef.handler() |
Modifier and Type | Method and Description |
---|---|
protected 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) |
Modifier and Type | Method and Description |
---|---|
static void |
CmdLineParser.registerHandler(Class valueType,
Class<? extends OptionHandler> handlerClass)
Deprecated.
You should use
OptionHandlerRegistry.registerHandler(java.lang.Class, java.lang.Class) instead. |
void |
OptionHandlerRegistry.registerHandler(Class valueType,
Class<? extends OptionHandler> handlerClass)
Registers a user-defined
OptionHandler class with args4j. |
ParserProperties |
ParserProperties.withOptionSorter(Comparator<OptionHandler> sorter)
Controls how options are sorted in the usage screen.
|
Constructor and Description |
---|
OptionDef(String usage,
String metaVar,
boolean required,
boolean help,
boolean hidden,
Class<? extends OptionHandler> handler,
boolean multiValued) |
Modifier and Type | Class and Description |
---|---|
class |
BooleanOptionHandler
Boolean
OptionHandler . |
class |
ByteOptionHandler
|
class |
CharOptionHandler
|
class |
DelimitedOptionHandler<T>
Partial
OptionHandler implementation that takes a single value to the option,
which is then gets split into individual tokens using fixed delimiter. |
class |
DoubleOptionHandler
|
class |
EnumOptionHandler<T extends Enum<T>>
|
class |
ExplicitBooleanOptionHandler
Boolean
OptionHandler that (unlike the standard BooleanOptionHandler
allows values to be set to false explicitly (using e.g. |
class |
FileOptionHandler
|
class |
FloatOptionHandler
|
class |
InetAddressOptionHandler
|
class |
IntOptionHandler
|
class |
LongOptionHandler
|
class |
MacAddressOptionHandler
OptionHandler that parses MAC address to byte[] of length 6. |
class |
MapOptionHandler
Parses options into a
Map . |
class |
MultiFileOptionHandler
Takes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection of
File . |
class |
MultiPathOptionHandler
Takes a classpath like option ("-cp a.jar;b.jar;c") and maps them to a collection of
Path . |
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 to
Path . |
class |
PatternOptionHandler
A regex option handler.
|
class |
RestOfArgumentsHandler
Eagerly grabs all the arguments.
|
class |
ShortOptionHandler
|
class |
StopOptionHandler
OptionHandler for the option terminator --. |
class |
StringArrayOptionHandler
An
OptionHandler for greedily mapping a list of tokens into a collection of String s
(such as String[] , List<String> , etc.). |
class |
StringOptionHandler
String
OptionHandler . |
class |
SubCommandHandler
OptionHandler used with Argument for parsing typical "sub-command" pattern. |
class |
URIOptionHandler
|
class |
URLOptionHandler
|
class |
UuidOptionHandler
|
Modifier and Type | Field and Description |
---|---|
Class<? extends OptionHandler> |
AnnotationImpl.handler |
Modifier and Type | Method and Description |
---|---|
Class<? extends OptionHandler> |
AnnotationImpl.handler() |
Copyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.