Uses of Class
com.fasterxml.jackson.databind.type.TypeBindings
-
Packages that use TypeBindings 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 ofJavaType
, as well as the factory (TypeFactory
) for constructing instances from various input data types (likeClass
,Type
) and programmatically (for structured types, arrays,List
s andMap
s). -
-
Uses of TypeBindings in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return TypeBindings Modifier and Type Method Description abstract TypeBindings
BeanDescription. bindingsForBeanType()
Deprecated.Since 2.7, should not need to access bindings directlyabstract TypeBindings
JavaType. getBindings()
Methods in com.fasterxml.jackson.databind with parameters of type TypeBindings Modifier and Type Method 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. -
Uses of TypeBindings in com.fasterxml.jackson.databind.introspect
Fields in com.fasterxml.jackson.databind.introspect declared as TypeBindings Modifier and Type Field Description protected TypeBindings
AnnotatedClass. _bindings
Type bindings to use for members ofAnnotatedClass._class
.Methods in com.fasterxml.jackson.databind.introspect that return TypeBindings Modifier and Type Method Description TypeBindings
BasicBeanDescription. bindingsForBeanType()
Deprecated.Constructors in com.fasterxml.jackson.databind.introspect with parameters of type TypeBindings Constructor Description Basic(TypeFactory tf, TypeBindings b)
-
Uses of TypeBindings in com.fasterxml.jackson.databind.type
Fields in com.fasterxml.jackson.databind.type declared as TypeBindings Modifier and Type Field Description protected TypeBindings
TypeBase. _bindings
Bindings in effect for this type instance; possibly empty.protected static TypeBindings
TypeFactory. EMPTY_BINDINGS
Methods in com.fasterxml.jackson.databind.type that return TypeBindings Modifier and Type Method Description 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. create(java.util.List<java.lang.String> names, java.util.List<JavaType> types)
Factory method for constructing bindings given names and associated types.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
ResolvedRecursiveType. getBindings()
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.Methods in com.fasterxml.jackson.databind.type with parameters of type TypeBindings Modifier and Type Method Description protected JavaType
TypeFactory. _constructSimple(java.lang.Class<?> raw, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
Factory method to call when no specialJavaType
is needed, no generic parameters are passed.protected JavaType
TypeFactory. _fromAny(ClassStack context, java.lang.reflect.Type srcType, TypeBindings bindings)
Factory method that can be used if type information is passed as Java typing returned fromgetGenericXxx
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 alternateJavaType
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)
protected JavaType
TypeFactory. _newSimpleType(java.lang.Class<?> raw, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
Factory method that is to create a newSimpleType
with no checks whatsoever.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 ArrayType
ArrayType. construct(JavaType componentType, TypeBindings bindings)
static ArrayType
ArrayType. construct(JavaType componentType, TypeBindings bindings, java.lang.Object valueHandler, java.lang.Object typeHandler)
static CollectionLikeType
CollectionLikeType. construct(java.lang.Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType elemT)
static CollectionType
CollectionType. 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 ReferenceType
ReferenceType. construct(java.lang.Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType refType)
JavaType
TypeFactory. constructParametricType(java.lang.Class<?> rawType, TypeBindings parameterTypes)
Factory method for constructingJavaType
that represents a parameterized type.JavaType
TypeFactory. constructType(java.lang.reflect.Type type, TypeBindings bindings)
Deprecated.Since 2.12JavaType[]
TypeFactory. findTypeParameters(java.lang.Class<?> clz, java.lang.Class<?> expType, TypeBindings bindings)
Deprecated.Since 2.7 resolve raw type first, then find type parametersabstract JavaType
TypeModifier. modifyType(JavaType type, java.lang.reflect.Type jdkType, TypeBindings context, TypeFactory typeFactory)
Method called to let modifier change constructed type definition.JavaType
ArrayType. refine(java.lang.Class<?> contentClass, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
JavaType
CollectionLikeType. 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
MapLikeType. 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
PlaceholderForType. 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
ResolvedRecursiveType. refine(java.lang.Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
JavaType
SimpleType. refine(java.lang.Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces)
JavaType
TypeFactory. resolveMemberType(java.lang.reflect.Type type, TypeBindings contextBindings)
Method to call when resolving types ofMember
s like Fields, Methods and Constructor parameters and there is aTypeBindings
(that describes binding of type parameters within context) to pass.Constructors in com.fasterxml.jackson.databind.type with parameters of type TypeBindings Constructor 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)
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)
ReferenceType(java.lang.Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType refType, JavaType anchorType, 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 byReferenceType
.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.
-