Package | Description |
---|---|
com.martiansoftware.jsap | |
com.martiansoftware.jsap.stringparsers |
Modifier and Type | Class and Description |
---|---|
class |
PropertyStringParser
A
StringParser subclass that provides a means for setting/getting properties. |
Modifier and Type | Method and Description |
---|---|
StringParser |
Option.getStringParser()
Returns the StringParser to which this Option will delegate calls to its
parse() method, or null if
no StringParser is currently defined.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Option.internalSetStringParser(StringParser stringParser)
Sets the StringParser to which this Option's parse() method should
delegate.
|
UnflaggedOption |
UnflaggedOption.setStringParser(StringParser stringParser)
Sets the StringParser to which this UnflaggedOption's parse() method
should delegate.
|
FlaggedOption |
FlaggedOption.setStringParser(StringParser stringParser)
Sets the StringParser to which this FlaggedOption's parse() method
should delegate.
|
Constructor and Description |
---|
FlaggedOption(String id,
StringParser stringParser,
String defaultValue,
boolean required,
char shortFlag,
String longFlag)
A shortcut constructor that creates a new FlaggedOption and configures
its most commonly used settings.
|
FlaggedOption(String id,
StringParser stringParser,
String defaultValue,
boolean required,
char shortFlag,
String longFlag,
String help)
A shortcut constructor that creates a new FlaggedOption and configures
its most commonly used settings, including help.
|
QualifiedSwitch(String id,
StringParser stringParser,
String defaultValue,
boolean required,
char shortFlag,
String longFlag)
A shortcut constructor that creates a new QualifiedSwitch and configures
its most commonly used settings.
|
QualifiedSwitch(String id,
StringParser stringParser,
String defaultValue,
boolean required,
char shortFlag,
String longFlag,
String help)
A shortcut constructor that creates a new QualifiedSwitch and configures
its most commonly used settings, including help.
|
UnflaggedOption(String id,
StringParser stringParser,
boolean required,
String help)
A shortcut constructor that creates a new non-greedy UnflaggedOption with no default value
and configures its most commonly used settings.
|
UnflaggedOption(String id,
StringParser stringParser,
String defaultValue,
boolean required,
boolean greedy)
A shortcut constructor that creates a new UnflaggedOption and configures
its most commonly used settings.
|
UnflaggedOption(String id,
StringParser stringParser,
String defaultValue,
boolean required,
boolean greedy,
String help)
A shortcut constructor that creates a new UnflaggedOption and configures
its most commonly used settings.
|
Modifier and Type | Class and Description |
---|---|
class |
BigDecimalStringParser
A
StringParser for parsing BigDecimals. |
class |
BigIntegerStringParser
A
StringParser for parsing BigIntegers. |
class |
BooleanStringParser
A
StringParser for parsing Booleans. |
class |
ByteStringParser
A
StringParser for parsing Bytes. |
class |
CharacterStringParser
A
StringParser for parsing Characters. |
class |
ClassStringParser
A
StringParser for parsing Class objects. |
class |
ColorStringParser
A
StringParser for parsing java.awt.Color objects. |
class |
DateStringParser
A
StringParser for parsing java.util.Date objects. |
class |
DoubleStringParser
A
StringParser for parsing Doubles. |
class |
EnumeratedStringParser
A
StringParser that enforces a limited set of String options for its
values. |
class |
FileStringParser
A StringParser for parsing
File objects. |
class |
FloatStringParser
A
StringParser for parsing Floats. |
class |
ForNameStringParser
A
StringParser that passes the
argument to a static method of signature forName(String) of a specified class. |
class |
InetAddressStringParser
A
StringParser for parsing java.net.InetAddress objects. |
class |
IntegerStringParser
A
StringParser for parsing Integers. |
class |
IntSizeStringParser
A
StringParser that works like LongSizeStringParser , but
additionally checks that the result is not larger than Integer.MAX_VALUE . |
class |
LongSizeStringParser
A
StringParser that lets the user specify sizes with an optional unit. |
class |
LongStringParser
A
StringParser for parsing Longs. |
class |
PackageStringParser
A
StringParser for parsing Packages. |
class |
ShortStringParser
A
StringParser for parsing Shorts. |
class |
StringStringParser
A
StringParser for parsing Strings. |
class |
URLStringParser
A
StringParser for parsing java.net.URL objects. |
Copyright © 2016. All rights reserved.