java.lang.Object
tools.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 TypeFieldDescriptionstatic final TypeParserprotected 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 IllegalArgumentException_problem(TypeParser.MyTokenizer tokens, String msg) protected Class<?>findClass(TypeFactory tf, String className, TypeParser.MyTokenizer tokens) parse(TypeFactory tf, String canonical) protected JavaTypeparseType(TypeFactory tf, TypeParser.MyTokenizer tokens, int nestingAllowed) parseTypes(TypeFactory tf, 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:
-
instance
-
-
Constructor Details
-
TypeParser
public TypeParser()
-
-
Method Details
-
parse
- Throws:
IllegalArgumentException
-
parseType
protected JavaType parseType(TypeFactory tf, TypeParser.MyTokenizer tokens, int nestingAllowed) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
parseTypes
protected List<JavaType> parseTypes(TypeFactory tf, TypeParser.MyTokenizer tokens, int nestingAllowed) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
findClass
-
_problem
-