Package | Description |
---|---|
com.martiansoftware.jsap | |
com.martiansoftware.jsap.stringparsers |
Modifier and Type | Method and Description |
---|---|
protected List |
Option.parse(String arg)
Parses the specified argument, returning the results in an ArrayList.
|
protected List |
Switch.parse(String arg)
Creates a new BooleanStringParser to which it delegates the parsing of
the specified argument.
|
protected abstract List |
Parameter.parse(String arg)
Returns an ArrayList of values resulting from the parsing
of the specified argument.
|
abstract Object |
StringParser.parse(String arg)
Parses the specified argument into an Object of the appropriate type.
|
Modifier and Type | Method and Description |
---|---|
Object |
DoubleStringParser.parse(String arg)
Parses the specified argument into a Double.
|
Object |
IntegerStringParser.parse(String arg)
Parses the specified argument into an Integer.
|
Object |
BigDecimalStringParser.parse(String arg)
Parses the specified argument into a BigDecimal.
|
Object |
ForNameStringParser.parse(String arg) |
Object |
CharacterStringParser.parse(String arg)
Parses the specified argument into a Character.
|
Object |
DateStringParser.parse(String arg)
Parses the specified argument using either the java.text.SimpleDateFormat
for the current locale
(by default) or a java.text.SimpleDateFormat as defined by this
PropertyStringParser's "format"
property.
|
Object |
FloatStringParser.parse(String arg)
Parses the specified argument into a Float.
|
Object |
BigIntegerStringParser.parse(String arg)
Parses the specified argument into a BigInteger.
|
Object |
ColorStringParser.parse(String arg)
Parses java.awt.Color objects from Strings.
|
Object |
LongSizeStringParser.parse(String arg) |
Object |
URLStringParser.parse(String arg)
Parses the specified argument into a URL.
|
Object |
IntSizeStringParser.parse(String arg) |
Object |
ClassStringParser.parse(String arg)
Parses the specified argument into a Class object.
|
Object |
PackageStringParser.parse(String arg)
Parses the specified argument into a Package object.
|
Object |
ByteStringParser.parse(String arg)
Parses the specified argument into a Byte.
|
Object |
EnumeratedStringParser.parse(String arg)
Parses the specified argument, making sure it matches one of the valid
options supplied to its constructor.
|
Object |
FileStringParser.parse(String arg)
Parses the specified argument into a File.
|
Object |
InetAddressStringParser.parse(String arg)
Parses the specified argument into an InetAddress.
|
Object |
LongStringParser.parse(String arg)
Parses the specified argument into a Long.
|
Object |
BooleanStringParser.parse(String arg)
Converts the specified argument into a Boolean.
|
Object |
ShortStringParser.parse(String arg)
Parses the specified argument into a Short.
|
static long |
LongSizeStringParser.parseSize(CharSequence s)
Parses a size specified using units (e.g., K, Ki, M, Mi,…).
|
void |
DateStringParser.setUp()
Instantiates the SimpleDateFormat to use for parsing.
|
void |
FileStringParser.setUp() |
Copyright © 2015. All rights reserved.