| Package | Description |
|---|---|
| com.fasterxml.jackson.databind |
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode), as well as
writing Java Objects and trees as JSON. |
| com.fasterxml.jackson.databind.introspect |
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
|
| com.fasterxml.jackson.databind.type |
Package that contains concrete implementations of
JavaType, as
well as the factory (TypeFactory) for
constructing instances from various input data types
(like Class, Type)
and programmatically (for structured types, arrays,
Lists and Maps). |
| Modifier and Type | Method and Description |
|---|---|
abstract TypeBindings |
BeanDescription.bindingsForBeanType()
Deprecated.
Since 2.7, use
BeanDescription.resolveType(java.lang.reflect.Type) instead. |
abstract TypeBindings |
JavaType.getBindings() |
| Modifier and Type | Method and Description |
|---|---|
abstract JavaType |
JavaType.refine(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces)
Mutant factory method that will try to create and return a sub-type instance
for known parameterized types; for other types will return `null` to indicate
that no just refinement makes necessary sense, without trying to detect
special status through implemented interfaces.
|
| Modifier and Type | Field and Description |
|---|---|
private TypeBindings |
TypeResolutionContext.Basic._bindings |
protected TypeBindings |
BasicBeanDescription._bindings
We may need type bindings for the bean type.
|
protected TypeBindings |
AnnotatedClass._bindings
Type bindings to use for members of
AnnotatedClass._class. |
| Modifier and Type | Method and Description |
|---|---|
TypeBindings |
BasicBeanDescription.bindingsForBeanType()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
JavaType |
Annotated.getType(TypeBindings bogus)
Deprecated.
Since 2.7 Use
Annotated.getType() instead. To be removed from 2.8. |
| Constructor and Description |
|---|
AnnotatedClass(JavaType type,
java.lang.Class<?> rawType,
TypeBindings bindings,
java.util.List<JavaType> superTypes,
AnnotationIntrospector aintr,
ClassIntrospector.MixInResolver mir,
TypeFactory tf,
AnnotationMap classAnnotations)
Constructor will not do any initializations, to allow for
configuring instances differently depending on use cases
|
Basic(TypeFactory tf,
TypeBindings b) |
| Modifier and Type | Field and Description |
|---|---|
protected TypeBindings |
TypeBase._bindings
Bindings in effect for this type instance; possibly empty.
|
private static TypeBindings |
TypeBindings.EMPTY |
protected static TypeBindings |
TypeFactory.EMPTY_BINDINGS |
private static TypeBindings |
TypeBase.NO_BINDINGS |
| Modifier and Type | Method and Description |
|---|---|
private TypeBindings |
TypeFactory._bindingsForSubtype(JavaType baseType,
int typeParamCount,
java.lang.Class<?> subclass) |
static TypeBindings |
TypeBindings.create(java.lang.Class<?> erasedType,
JavaType typeArg1) |
static TypeBindings |
TypeBindings.create(java.lang.Class<?> erasedType,
JavaType[] types) |
static TypeBindings |
TypeBindings.create(java.lang.Class<?> erasedType,
JavaType typeArg1,
JavaType typeArg2) |
static TypeBindings |
TypeBindings.create(java.lang.Class<?> erasedType,
java.util.List<JavaType> typeList)
Factory method for constructing bindings for given class using specified type
parameters.
|
static TypeBindings |
TypeBindings.createIfNeeded(java.lang.Class<?> erasedType,
JavaType typeArg1)
Alternate factory method that may be called if it is possible that type
does or does not require type parameters; this is mostly useful for
collection- and map-like types.
|
static TypeBindings |
TypeBindings.createIfNeeded(java.lang.Class<?> erasedType,
JavaType[] types)
Alternate factory method that may be called if it is possible that type
does or does not require type parameters; this is mostly useful for
collection- and map-like types.
|
static TypeBindings |
TypeBindings.emptyBindings() |
TypeBindings |
TypeBase.getBindings() |
TypeBindings |
TypeBindings.withUnboundVariable(java.lang.String name)
Method for creating an instance that has same bindings as this object,
plus an indicator for additional type variable that may be unbound within
this context; this is needed to resolve recursive self-references.
|
| Modifier and Type | Method and Description |
|---|---|
private static JavaType |
SimpleType._buildSuperClass(java.lang.Class<?> superClass,
TypeBindings b)
Helper method we need to recursively build skeletal representations
of superclasses.
|
private JavaType |
TypeFactory._collectionType(java.lang.Class<?> rawClass,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
protected JavaType |
TypeFactory._constructSimple(java.lang.Class<?> raw,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces)
Factory method to call when no special
JavaType is needed,
no generic parameters are passed. |
protected JavaType |
TypeFactory._fromAny(ClassStack context,
java.lang.reflect.Type type,
TypeBindings bindings)
Factory method that can be used if type information is passed
as Java typing returned from
getGenericXxx methods
(usually for a return or argument type). |
protected JavaType |
TypeFactory._fromArrayType(ClassStack context,
java.lang.reflect.GenericArrayType type,
TypeBindings bindings) |
protected JavaType |
TypeFactory._fromClass(ClassStack context,
java.lang.Class<?> rawType,
TypeBindings bindings) |
protected JavaType |
TypeFactory._fromParamType(ClassStack context,
java.lang.reflect.ParameterizedType ptype,
TypeBindings parentBindings)
This method deals with parameterized types, that is,
first class generic classes.
|
protected JavaType |
TypeFactory._fromVariable(ClassStack context,
java.lang.reflect.TypeVariable<?> var,
TypeBindings bindings) |
protected JavaType |
TypeFactory._fromWellKnownClass(ClassStack context,
java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces)
Helper class used to check whether exact class for which type is being constructed
is one of well-known base interfaces or classes that indicates alternate
JavaType implementation. |
protected JavaType |
TypeFactory._fromWellKnownInterface(ClassStack context,
java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
protected JavaType |
TypeFactory._fromWildcard(ClassStack context,
java.lang.reflect.WildcardType type,
TypeBindings bindings) |
private JavaType |
TypeFactory._mapType(java.lang.Class<?> rawClass,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
protected JavaType |
TypeFactory._newSimpleType(java.lang.Class<?> raw,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces)
Factory method that is to create a new
SimpleType with no
checks whatsoever. |
private JavaType |
TypeFactory._referenceType(java.lang.Class<?> rawClass,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
protected JavaType |
TypeFactory._resolveSuperClass(ClassStack context,
java.lang.Class<?> rawType,
TypeBindings parentBindings) |
protected JavaType[] |
TypeFactory._resolveSuperInterfaces(ClassStack context,
java.lang.Class<?> rawType,
TypeBindings parentBindings) |
static ReferenceType |
ReferenceType.construct(java.lang.Class<?> cls,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType refType) |
static CollectionType |
CollectionType.construct(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType elemT) |
static CollectionLikeType |
CollectionLikeType.construct(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType elemT) |
static MapType |
MapType.construct(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType keyT,
JavaType valueT) |
static ArrayType |
ArrayType.construct(JavaType componentType,
TypeBindings bindings) |
static ArrayType |
ArrayType.construct(JavaType componentType,
TypeBindings bindings,
java.lang.Object valueHandler,
java.lang.Object typeHandler) |
JavaType |
TypeFactory.constructType(java.lang.reflect.Type type,
TypeBindings bindings) |
JavaType[] |
TypeFactory.findTypeParameters(java.lang.Class<?> clz,
java.lang.Class<?> expType,
TypeBindings bindings)
Deprecated.
Since 2.7 resolve raw type first, then find type parameters
|
abstract JavaType |
TypeModifier.modifyType(JavaType type,
java.lang.reflect.Type jdkType,
TypeBindings context,
TypeFactory typeFactory)
Method called to let modifier change constructed type definition.
|
JavaType |
SimpleType.refine(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
JavaType |
ResolvedRecursiveType.refine(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
JavaType |
ReferenceType.refine(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
JavaType |
MapType.refine(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
JavaType |
MapLikeType.refine(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
JavaType |
CollectionType.refine(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
JavaType |
CollectionLikeType.refine(java.lang.Class<?> rawType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
JavaType |
ArrayType.refine(java.lang.Class<?> contentClass,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInterfaces) |
| Constructor and Description |
|---|
ArrayType(JavaType componentType,
TypeBindings bindings,
java.lang.Object emptyInstance,
java.lang.Object valueHandler,
java.lang.Object typeHandler,
boolean asStatic) |
CollectionLikeType(java.lang.Class<?> collT,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType elemT,
java.lang.Object valueHandler,
java.lang.Object typeHandler,
boolean asStatic) |
CollectionType(java.lang.Class<?> collT,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType elemT,
java.lang.Object valueHandler,
java.lang.Object typeHandler,
boolean asStatic) |
MapLikeType(java.lang.Class<?> mapType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType keyT,
JavaType valueT,
java.lang.Object valueHandler,
java.lang.Object typeHandler,
boolean asStatic) |
MapType(java.lang.Class<?> mapType,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType keyT,
JavaType valueT,
java.lang.Object valueHandler,
java.lang.Object typeHandler,
boolean asStatic) |
ReferenceType(java.lang.Class<?> cls,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
JavaType refType,
java.lang.Object valueHandler,
java.lang.Object typeHandler,
boolean asStatic) |
ResolvedRecursiveType(java.lang.Class<?> erasedType,
TypeBindings bindings) |
SimpleType(java.lang.Class<?> cls,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts) |
SimpleType(java.lang.Class<?> cls,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
int extraHash,
java.lang.Object valueHandler,
java.lang.Object typeHandler,
boolean asStatic)
Pass-through constructor used by
ReferenceType. |
SimpleType(java.lang.Class<?> cls,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
java.lang.Object valueHandler,
java.lang.Object typeHandler,
boolean asStatic) |
TypeBase(java.lang.Class<?> raw,
TypeBindings bindings,
JavaType superClass,
JavaType[] superInts,
int hash,
java.lang.Object valueHandler,
java.lang.Object typeHandler,
boolean asStatic)
Main constructor to use by extending classes.
|