|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CmdLineOption
A command line option.
This object is responsible for parsing a particular option and storing the parsed result.
Nested Class Summary | |
---|---|
static interface |
CmdLineOption.Parameters
SPI for CmdLineOption . |
Method Summary | |
---|---|
boolean |
accepts(java.lang.String optionName)
Checks if this option parser recognizes the specified option name. |
int |
parseArguments(CmdLineParser parser,
CmdLineOption.Parameters params)
Called if the option that this parser recognizes is found. |
Method Detail |
---|
boolean accepts(java.lang.String optionName)
int parseArguments(CmdLineParser parser, CmdLineOption.Parameters params) throws CmdLineException
parser
- The parser that's using this option object.
For example, if the option "-quiet" is simply an alias to
"-verbose 5", then the implementation can just call the
CmdLineParser.parse(String[])
method recursively.params
- The rest of the arguments. This method can use this
object to access the arguments of the option if necessary.
CmdLineException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |