Class TypeParser
- java.lang.Object
-
- com.fasterxml.jackson.databind.type.TypeParser
-
- All Implemented Interfaces:
java.io.Serializable
public class TypeParser extends java.lang.Object implements java.io.Serializable
Simple recursive-descent parser for parsing canonicalJavaType
representations and constructing type instances.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
TypeParser.MyTokenizer
-
Field Summary
Fields Modifier and Type Field Description protected TypeFactory
_factory
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description TypeParser(TypeFactory f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.IllegalArgumentException
_problem(TypeParser.MyTokenizer tokens, java.lang.String msg)
protected java.lang.Class<?>
findClass(java.lang.String className, TypeParser.MyTokenizer tokens)
JavaType
parse(java.lang.String canonical)
protected JavaType
parseType(TypeParser.MyTokenizer tokens)
protected java.util.List<JavaType>
parseTypes(TypeParser.MyTokenizer tokens)
TypeParser
withFactory(TypeFactory f)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
_factory
protected final TypeFactory _factory
-
-
Constructor Detail
-
TypeParser
public TypeParser(TypeFactory f)
-
-
Method Detail
-
withFactory
public TypeParser withFactory(TypeFactory f)
- Since:
- 2.6.2
-
parse
public JavaType parse(java.lang.String canonical) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
parseType
protected JavaType parseType(TypeParser.MyTokenizer tokens) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
parseTypes
protected java.util.List<JavaType> parseTypes(TypeParser.MyTokenizer tokens) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
findClass
protected java.lang.Class<?> findClass(java.lang.String className, TypeParser.MyTokenizer tokens)
-
_problem
protected java.lang.IllegalArgumentException _problem(TypeParser.MyTokenizer tokens, java.lang.String msg)
-
-