Class StringStringParser
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.- Author:
- Marty Lamb
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringStringParserReturns aStringStringParser.Returns the specified argument as a String.Methods inherited from class StringParser
setUp, tearDown
-
Constructor Details
-
StringStringParser
public StringStringParser()Deprecated.UsegetParser()or, even better,JSAP.STRING_PARSER.Creates a new StringStringParser.
-
-
Method Details
-
getParser
Returns aStringStringParser.Convenient access to the only instance returned by this method is available through
JSAP.STRING_PARSER.- Returns:
- a
StringStringParser.
-
parse
Returns the specified argument as a String.- Specified by:
parsein classStringParser- Parameters:
arg- the argument to parse- Returns:
- the specified argument as a String.
- See Also:
-
getParser()or, even better,JSAP.STRING_PARSER.