public class StringStringParser extends StringParser
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 and Description |
---|
StringStringParser()
Deprecated.
Use
getParser() or, even better, JSAP.STRING_PARSER . |
Modifier and Type | Method and Description |
---|---|
static StringStringParser |
getParser()
Returns a
StringStringParser . |
java.lang.Object |
parse(java.lang.String arg)
Returns the specified argument as a String.
|
setUp, tearDown
public static StringStringParser getParser()
StringStringParser
.
Convenient access to the only instance returned by
this method is available through
JSAP.STRING_PARSER
.
StringStringParser
.public java.lang.Object parse(java.lang.String arg)
parse
in class StringParser
arg
- the argument to parseString
,
StringParser.parse(String)
Copyright © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap