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. |
Object |
parse(String arg)
Returns the specified argument as a String.
|
setUp, tearDownpublic StringStringParser()
getParser() or, even better, JSAP.STRING_PARSER.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 StringParserarg - the argument to parseString,
StringParser.parse(String)Copyright © 2016. All rights reserved.