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