|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjargs.gnu.CmdLineParser.Option
public abstract static class CmdLineParser.Option
Representation of a command-line option
| Nested Class Summary | |
|---|---|
static class |
CmdLineParser.Option.BooleanOption
|
static class |
CmdLineParser.Option.DoubleOption
An option that expects a floating-point value |
static class |
CmdLineParser.Option.IntegerOption
An option that expects an integer value |
static class |
CmdLineParser.Option.LongOption
An option that expects a long integer value |
static class |
CmdLineParser.Option.StringOption
An option that expects a string value |
| Constructor Summary | |
|---|---|
protected |
CmdLineParser.Option(char shortForm,
String longForm,
boolean wantsValue)
|
protected |
CmdLineParser.Option(String longForm,
boolean wantsValue)
|
| Method Summary | |
|---|---|
Object |
getValue(String arg,
Locale locale)
|
String |
longForm()
|
protected Object |
parseValue(String arg,
Locale locale)
Override to extract and convert an option value passed on the command-line |
String |
shortForm()
|
boolean |
wantsValue()
Tells whether or not this option wants a value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CmdLineParser.Option(String longForm,
boolean wantsValue)
protected CmdLineParser.Option(char shortForm,
String longForm,
boolean wantsValue)
| Method Detail |
|---|
public String shortForm()
public String longForm()
public boolean wantsValue()
public final Object getValue(String arg,
Locale locale)
throws CmdLineParser.IllegalOptionValueException
CmdLineParser.IllegalOptionValueException
protected Object parseValue(String arg,
Locale locale)
throws CmdLineParser.IllegalOptionValueException
CmdLineParser.IllegalOptionValueException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||