|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.martiansoftware.jsap.StringParser com.martiansoftware.jsap.stringparsers.StringStringParser
A StringParser
for parsing Strings. This is the simplest possible
StringParser, simply returning
the specified argument in all cases. This class never throws a
ParseException under any circumstances.
StringParser
,
String
Constructor Summary | |
StringStringParser()
Deprecated. Use getParser() or, even better, JSAP.STRING_PARSER . |
Method Summary | |
static StringStringParser |
getParser()
Returns a StringStringParser . |
Object |
parse(String arg)
Returns the specified argument as a String. |
Methods inherited from class com.martiansoftware.jsap.StringParser |
setUp, tearDown |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringStringParser()
getParser()
or, even better, JSAP.STRING_PARSER
.
Method Detail |
public static StringStringParser getParser()
StringStringParser
.
Convenient access to the only instance returned by
this method is available through
JSAP.STRING_PARSER
.
StringStringParser
.public Object parse(String arg)
parse
in class StringParser
arg
- the argument to parse
String
,
StringParser.parse(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |