public class TypeParser extends Object implements Serializable
JavaType
representations and constructing type instances.| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypeParser.MyTokenizer |
| Modifier and Type | Field and Description |
|---|---|
protected TypeFactory |
_factory |
protected static int |
MAX_TYPE_LENGTH
Maximum length of canonical type definition we will try to parse.
|
protected static int |
MAX_TYPE_NESTING
Maximum levels of nesting allowed for parameterized types.
|
| Constructor and Description |
|---|
TypeParser(TypeFactory f) |
| Modifier and Type | Method and Description |
|---|---|
protected IllegalArgumentException |
_problem(TypeParser.MyTokenizer tokens,
String msg) |
protected Class<?> |
findClass(String className,
TypeParser.MyTokenizer tokens) |
JavaType |
parse(String canonical) |
protected JavaType |
parseType(TypeParser.MyTokenizer tokens,
int nestingAllowed) |
protected List<JavaType> |
parseTypes(TypeParser.MyTokenizer tokens,
int nestingAllowed) |
TypeParser |
withFactory(TypeFactory f) |
protected static final int MAX_TYPE_LENGTH
protected static final int MAX_TYPE_NESTING
protected final TypeFactory _factory
public TypeParser(TypeFactory f)
public TypeParser withFactory(TypeFactory f)
public JavaType parse(String canonical) throws IllegalArgumentException
IllegalArgumentExceptionprotected JavaType parseType(TypeParser.MyTokenizer tokens, int nestingAllowed) throws IllegalArgumentException
IllegalArgumentExceptionprotected List<JavaType> parseTypes(TypeParser.MyTokenizer tokens, int nestingAllowed) throws IllegalArgumentException
IllegalArgumentExceptionprotected Class<?> findClass(String className, TypeParser.MyTokenizer tokens)
protected IllegalArgumentException _problem(TypeParser.MyTokenizer tokens, String msg)
Copyright © 2008–2025 FasterXML. All rights reserved.