public class PathOptionHandler extends OneArgumentOptionHandler<java.nio.file.Path>
Path.option, owner, setter| Constructor and Description |
|---|
PathOptionHandler(CmdLineParser parser,
OptionDef option,
Setter<? super java.nio.file.Path> setter) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultMetaVariable()
Gets the default meta variable name used to print the usage screen.
|
protected java.nio.file.Path |
parse(String argument)
Parses a string to a real value of Type <T>.
|
parseArgumentsgetMetaVariable, getNameAndMeta, getNameAndMeta, print, printDefaultValuepublic PathOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super java.nio.file.Path> setter)
protected java.nio.file.Path parse(String argument) throws NumberFormatException, CmdLineException
OneArgumentOptionHandlerparse in class OneArgumentOptionHandler<java.nio.file.Path>argument - String value to parseNumberFormatException - if parsing is not possibleCmdLineException - if the parsing encounters a failure that should be reported to the user.public String getDefaultMetaVariable()
OptionHandlerResourceBundle, if one was passed to
CmdLineParser.getDefaultMetaVariable in class OneArgumentOptionHandler<java.nio.file.Path>null to hide a meta variable.Copyright © 2003–2024 Kohsuke Kawaguchi. All rights reserved.