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:
-
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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IllegalArgumentExceptionprotected Class<?> protected JavaTypeparseType(com.fasterxml.jackson.databind.type.TypeParser.MyTokenizer tokens, int nestingAllowed) parseTypes(com.fasterxml.jackson.databind.type.TypeParser.MyTokenizer tokens, int nestingAllowed)
-
Field Details
-
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(com.fasterxml.jackson.databind.type.TypeParser.MyTokenizer tokens, int nestingAllowed) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
parseTypes
protected List<JavaType> parseTypes(com.fasterxml.jackson.databind.type.TypeParser.MyTokenizer tokens, int nestingAllowed) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
findClass
-
_problem
protected IllegalArgumentException _problem(com.fasterxml.jackson.databind.type.TypeParser.MyTokenizer tokens, String msg)
-