Class TypeParser
java.lang.Object
com.fasterxml.jackson.databind.type.TypeParser
- All Implemented Interfaces:
Serializable
Simple recursive-descent parser for parsing canonical
JavaType
representations and constructing type instances.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TypeFactoryprotected static final intMaximum length of canonical type definition we will try to parse.protected static final intMaximum levels of nesting allowed for parameterized types.private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IllegalArgumentException_problem(TypeParser.MyTokenizer tokens, String msg) private static String_quoteTruncated(String str) protected Class<?> findClass(String className, TypeParser.MyTokenizer tokens) protected JavaTypeparseType(TypeParser.MyTokenizer tokens, int nestingAllowed) parseTypes(TypeParser.MyTokenizer tokens, int nestingAllowed)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
MAX_TYPE_LENGTH
protected static final int MAX_TYPE_LENGTHMaximum length of canonical type definition we will try to parse. Used as protection for malformed generic type declarations.- Since:
- 2.16
- See Also:
-
MAX_TYPE_NESTING
protected static final int MAX_TYPE_NESTINGMaximum levels of nesting allowed for parameterized types. Used as protection for malformed generic type declarations.- Since:
- 2.16
- See Also:
-
_factory
-
-
Constructor Details
-
TypeParser
-
-
Method Details
-
withFactory
- Since:
- 2.6.2
-
parse
- Throws:
IllegalArgumentException
-
parseType
protected JavaType parseType(TypeParser.MyTokenizer tokens, int nestingAllowed) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
parseTypes
protected List<JavaType> parseTypes(TypeParser.MyTokenizer tokens, int nestingAllowed) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
findClass
-
_problem
-
_quoteTruncated
-