public class InetAddressOptionHandler extends OneArgumentOptionHandler<InetAddress>
option, owner, setter
Constructor and Description |
---|
InetAddressOptionHandler(CmdLineParser parser,
OptionDef option,
Setter<? super InetAddress> setter) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultMetaVariable()
Gets the default meta variable name used to print the usage screen.
|
protected InetAddress |
parse(String argument)
Parses a string to a real value of Type <T>.
|
parseArguments
getMetaVariable, getNameAndMeta, getNameAndMeta, print, printDefaultValue
public InetAddressOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super InetAddress> setter)
protected InetAddress parse(String argument) throws CmdLineException
OneArgumentOptionHandler
parse
in class OneArgumentOptionHandler<InetAddress>
argument
- String value to parseCmdLineException
- if the parsing encounters a failure that should be reported to the user.public String getDefaultMetaVariable()
OptionHandler
ResourceBundle
, if one was passed to
CmdLineParser
.getDefaultMetaVariable
in class OneArgumentOptionHandler<InetAddress>
null
to hide a meta variable.Copyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.