public interface Parser<T>
ParserFactory for how to create a Parser for a particular type.| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getClazz()
Gets the Class of values parsed by this parser.
|
T |
parse(String str)
Translates the text of a String to an object of type T.
|
Parsed<T> |
parse(String str,
int pos)
Translates part of the text of a String to an object of type T.
|
T parse(String str)
str - the text to be parsedParsed<T> parse(String str, int pos)
str - the text to be parsedpos - position in str at which to start parsing