Uses of Class
org.codehaus.jackson.type.JavaType
Packages that use JavaType
Package
Description
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser
)
and generator
(JsonParser
)
instances.Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper
class, as well
as convenience methods included in
JsonParser
Contains implementation classes of deserialization part of
data binding.
Contains those implementation classes of deserialization part of
data binding that are not considered part of public or semi-public
interfaces.
Contains public standard implementations of abstraction that
Jackson uses.
Contains extended support for "external" packages: things that
may or may not be present in runtime environment, but that are
commonly enough used so that explicit support can be added.
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver
.Package that contains classes and interfaces to help implement
custom extension
Module
s
(which are registered using
ObjectMapper.registerModule(org.codehaus.jackson.map.Module)
.Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
Utility classes for Mapper package.
Contains classes needed for type introspection, mostly used by data binding
functionality.
Package that contains XML Compatibility functionality for Jackson, such
as handlers for JAXB annotations
-
Uses of JavaType in org.codehaus.jackson
Methods in org.codehaus.jackson with parameters of type JavaTypeModifier and TypeMethodDescriptionabstract <T> T
ObjectCodec.readValue
(JsonParser jp, JavaType valueType) Method to deserialize JSON content as tree expressed using set ofJsonNode
instances.abstract <T> Iterator
<T> ObjectCodec.readValues
(JsonParser jp, JavaType valueType) Method for reading sequence of Objects from parser stream, all with same specified value type. -
Uses of JavaType in org.codehaus.jackson.map
Fields in org.codehaus.jackson.map declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaType
ObjectWriter._rootType
Specified root serialization type to use; can be same as runtime type, but usually one of its super typesprotected final JavaType
BeanDescription._type
Bean type information, including raw class and possible * generics informationprotected final JavaType
BeanProperty.Std._type
protected final JavaType
MappingIterator._type
protected final JavaType
ObjectReader._valueType
Declared type of value to instantiate during deserialization.protected static final JavaType
SerializerProvider.TYPE_OBJECT
Fields in org.codehaus.jackson.map with type parameters of type JavaTypeModifier and TypeFieldDescriptionprotected final ConcurrentHashMap
<JavaType, JsonDeserializer<Object>> ObjectMapper._rootDeserializers
We will use a separate main-level Map for keeping track of root-level deserializers.protected final ConcurrentHashMap
<JavaType, JsonDeserializer<Object>> ObjectReader._rootDeserializers
Root-level cached deserializersMethods in org.codehaus.jackson.map that return JavaTypeModifier and TypeMethodDescriptionMapperConfig.constructSpecializedType
(JavaType baseType, Class<?> subclass) SerializerProvider.constructSpecializedType
(JavaType baseType, Class<?> subclass) DeserializationContext.constructType
(Class<?> cls) final JavaType
MapperConfig.constructType
(Class<?> cls) Helper method that will constructJavaType
for given raw class.final JavaType
MapperConfig.constructType
(TypeReference<?> valueTypeRef) Helper method that will constructJavaType
for given type reference This is a simple short-cut for:ObjectMapper.constructType
(Type t) Convenience method for constructingJavaType
out of given type (typicallyjava.lang.Class
), but without explicit context.SerializerProvider.constructType
(Type type) AbstractTypeResolver.findTypeMapping
(DeserializationConfig config, JavaType type) Try to locate a subtype for given abstract type, to either resolve to a concrete type, or at least to a more-specific (and hopefully supported) abstract type, one which may have registered deserializers.BeanDescription.getType()
Method for accessing declared type of bean being introspected, including full generic type information (from declaration)BeanProperty.getType()
Method to get declared type of the property.BeanProperty.Std.getType()
abstract JavaType
DeserializerFactory.mapAbstractType
(DeserializationConfig config, JavaType type) Method that can be called to try to resolve an abstract type (interface, abstract class) into a concrete type, or at least something "more concrete" (abstract class instead of interface).abstract JavaType
DeserializerProvider.mapAbstractType
(DeserializationConfig config, JavaType type) Method that can be called to try to resolve an abstract type (interface, abstract class) into a concrete type, or at least something "more concrete" (abstract class instead of interface).AbstractTypeResolver.resolveAbstractType
(DeserializationConfig config, JavaType type) Method called to try to resolve an abstract type into concrete type (usually for purposes of deserializing), when no concrete implementation was found.abstract JavaType
BeanDescription.resolveType
(Type jdkType) Method for resolving given JDK type, using this bean as the generic type resolution context.Methods in org.codehaus.jackson.map with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected Object
protected JsonDeserializer
<Object> ObjectMapper._findRootDeserializer
(DeserializationConfig cfg, JavaType valueType) Method called to locate deserializer for the passed root-level value.protected JsonDeserializer
<Object> ObjectReader._findRootDeserializer
(DeserializationConfig cfg, JavaType valueType) Method called to locate deserializer for the passed root-level value.protected Object
ObjectMapper._readMapAndClose
(JsonParser jp, JavaType valueType) protected Object
ObjectMapper._readValue
(DeserializationConfig cfg, JsonParser jp, JavaType valueType) Actual implementation of value reading+binding operation.protected Object
ObjectMapper._unwrapAndDeserialize
(JsonParser jp, JavaType rootType, DeserializationContext ctxt, JsonDeserializer<Object> deser) protected Object
ObjectReader._unwrapAndDeserialize
(JsonParser jp, DeserializationContext ctxt, JavaType rootType, JsonDeserializer<Object> deser) ObjectMapper.DefaultTypeResolverBuilder.buildTypeDeserializer
(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes, BeanProperty property) ObjectMapper.DefaultTypeResolverBuilder.buildTypeSerializer
(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes, BeanProperty property) boolean
ObjectMapper.canDeserialize
(JavaType type) Method that can be called to check whether mapper thinks it could deserialize an Object of given type.MapperConfig.constructSpecializedType
(JavaType baseType, Class<?> subclass) SerializerProvider.constructSpecializedType
(JavaType baseType, Class<?> subclass) <T> T
ObjectMapper.convertValue
(Object fromValue, JavaType toValueType) abstract JsonDeserializer
<Object> DeserializerFactory.createBeanDeserializer
(DeserializationConfig config, DeserializerProvider p, JavaType type, BeanProperty property) Method called to create (or, for completely immutable deserializers, reuse) a deserializer that can convert JSON content into values of specified Java "bean" (POJO) type.abstract JsonDeserializer
<?> DeserializerFactory.createEnumDeserializer
(DeserializationConfig config, DeserializerProvider p, JavaType type, BeanProperty property) DeserializerFactory.createKeyDeserializer
(DeserializationConfig config, JavaType type, BeanProperty property) Method called to find if factory knows how to create a key deserializer for specified type; currently this means checking if a module has registered possible deserializers.abstract JsonSerializer
<Object> SerializerFactory.createKeySerializer
(SerializationConfig config, JavaType baseType, BeanProperty property) Method called to create serializer to use for serializing JSON property names (which must be output asJsonToken.FIELD_NAME
) for Map that has specified declared key type, and is for specified property (or, if property is null, as root value)abstract JsonSerializer
<Object> SerializerFactory.createSerializer
(SerializationConfig config, JavaType baseType, BeanProperty property) Method called to create (or, for immutable serializers, reuse) a serializer for given type.final JsonSerializer
<Object> SerializerFactory.createSerializer
(JavaType type, SerializationConfig config) Deprecated.Since 1.7, call variant with more argumentsabstract JsonDeserializer
<?> DeserializerFactory.createTreeDeserializer
(DeserializationConfig config, DeserializerProvider p, JavaType type, BeanProperty property) Method called to create and return a deserializer that can construct JsonNode(s) from JSON content.abstract TypeSerializer
SerializerFactory.createTypeSerializer
(SerializationConfig config, JavaType baseType, BeanProperty property) Method called to create a type information serializer for given base type, if one is needed.final TypeSerializer
SerializerFactory.createTypeSerializer
(JavaType baseType, SerializationConfig config) Deprecated.Since 1.7, call variant with more argumentsDeserializers.Base.findBeanDeserializer
(JavaType type, DeserializationConfig config, DeserializerProvider provider, BeanDescription beanDesc, BeanProperty property) Deserializers.findBeanDeserializer
(JavaType type, DeserializationConfig config, DeserializerProvider provider, BeanDescription beanDesc, BeanProperty property) Method called to locate deserializer for specified value type which does not belong to any other category (not an Enum, Collection, Map, Array or tree node)abstract Class
<?> AnnotationIntrospector.findDeserializationContentType
(Annotated am, JavaType baseContentType, String propName) Method for accessing additional narrowing type definition that a method can have, to define more specific content type to use; content refers to Map values and Collection/array elements.Class
<?> AnnotationIntrospector.Pair.findDeserializationContentType
(Annotated am, JavaType baseContentType, String propName) abstract Class
<?> AnnotationIntrospector.findDeserializationKeyType
(Annotated am, JavaType baseKeyType, String propName) Method for accessing additional narrowing type definition that a method can have, to define more specific key type to use.Class
<?> AnnotationIntrospector.Pair.findDeserializationKeyType
(Annotated am, JavaType baseKeyType, String propName) abstract Class
<?> AnnotationIntrospector.findDeserializationType
(Annotated am, JavaType baseType, String propName) Method for accessing annotated type definition that a method can have, to be used as the type for serialization instead of the runtime type.Class
<?> AnnotationIntrospector.Pair.findDeserializationType
(Annotated am, JavaType baseType, String propName) abstract SerializedString
DeserializerProvider.findExpectedRootName
(DeserializationConfig config, JavaType type) Method that can be used to try find expected root name for given typeabstract KeyDeserializer
DeserializerProvider.findKeyDeserializer
(DeserializationConfig config, JavaType keyType, BeanProperty property) Method called to get hold of a deserializer to use for deserializing keys forMap
.KeyDeserializers.findKeyDeserializer
(JavaType type, DeserializationConfig config, BeanDescription beanDesc, BeanProperty property) abstract JsonSerializer
<Object> SerializerProvider.findKeySerializer
(JavaType keyType, BeanProperty property) Method called to get the serializer to use for serializing non-null Map keys.AnnotationIntrospector.findPropertyContentTypeResolver
(MapperConfig<?> config, AnnotatedMember am, JavaType containerType) Method for checking if given structured property entity (field or method that has nominal value of Map, Collection or array type) has annotations that indicate that specific type resolver is to be used for handling type information of contained values.AnnotationIntrospector.Pair.findPropertyContentTypeResolver
(MapperConfig<?> config, AnnotatedMember am, JavaType baseType) AnnotationIntrospector.findPropertyTypeResolver
(MapperConfig<?> config, AnnotatedMember am, JavaType baseType) Method for checking if given property entity (field or method) has annotations that indicate that specific type resolver is to be used for handling instances.AnnotationIntrospector.Pair.findPropertyTypeResolver
(MapperConfig<?> config, AnnotatedMember am, JavaType baseType) Class
<?> AnnotationIntrospector.findSerializationContentType
(Annotated am, JavaType baseType) Method for finding possible widening type definition that a property value can have, to define less specific key type to use for serialization.Class
<?> AnnotationIntrospector.Pair.findSerializationContentType
(Annotated am, JavaType baseType) Class
<?> AnnotationIntrospector.findSerializationKeyType
(Annotated am, JavaType baseType) Method for finding possible widening type definition that a property value can have, to define less specific key type to use for serialization.Class
<?> AnnotationIntrospector.Pair.findSerializationKeyType
(Annotated am, JavaType baseType) Serializers.Base.findSerializer
(SerializationConfig config, JavaType type, BeanDescription beanDesc, BeanProperty property) Serializers.findSerializer
(SerializationConfig config, JavaType type, BeanDescription beanDesc, BeanProperty property) Method called by serialization framework first time a serializer is needed for specified type, which is not of a container type (for which other methods are called).DeserializerFactory.findTypeDeserializer
(DeserializationConfig config, JavaType baseType, BeanProperty property) Method called to find and create a type information deserializer for given base type, if one is needed.abstract JsonDeserializer
<Object> DeserializerProvider.findTypedValueDeserializer
(DeserializationConfig config, JavaType type, BeanProperty property) Method called to locate deserializer for given type, as well as matching type deserializer (if one is needed); and if type deserializer is needed, construct a "wrapped" deserializer that can extract and use type information for calling actual deserializer.final JsonSerializer
<Object> SerializerProvider.findTypedValueSerializer
(JavaType valueType, boolean cache) Deprecated.As of version 1.7, use version that exposes property object instead of just its type (needed for contextual serializers)abstract JsonSerializer
<Object> SerializerProvider.findTypedValueSerializer
(JavaType valueType, boolean cache, BeanProperty property) Method called to locate regular serializer, matching type serializer, and if both found, wrap them in a serializer that calls both in correct sequence.AbstractTypeResolver.findTypeMapping
(DeserializationConfig config, JavaType type) Try to locate a subtype for given abstract type, to either resolve to a concrete type, or at least to a more-specific (and hopefully supported) abstract type, one which may have registered deserializers.AnnotationIntrospector.findTypeResolver
(MapperConfig<?> config, AnnotatedClass ac, JavaType baseType) Method for checking if given class has annotations that indicate that specific type resolver is to be used for handling instances.AnnotationIntrospector.Pair.findTypeResolver
(MapperConfig<?> config, AnnotatedClass ac, JavaType baseType) abstract JsonDeserializer
<Object> DeserializerProvider.findValueDeserializer
(DeserializationConfig config, JavaType propertyType, BeanProperty property) Method called to get hold of a deserializer for a value of given type; or if no such deserializer can be found, a default handler (which may do a best-effort generic serialization or just simply throw an exception when invoked).final JsonSerializer
<Object> SerializerProvider.findValueSerializer
(JavaType serializationType) Deprecated.As of version 1.7, use version that exposes property object instead of just its type (needed for contextual serializers)abstract JsonSerializer
<Object> SerializerProvider.findValueSerializer
(JavaType serializationType, BeanProperty property) Similar toSerializerProvider.findValueSerializer(Class)
, but takes full generics-aware type instead of raw class.abstract T
ClassIntrospector.forClassAnnotations
(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r) Factory method that constructs an introspector that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.abstract T
ClassIntrospector.forCreation
(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r) Factory method that constructs an introspector that has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methodsabstract T
ClassIntrospector.forDeserialization
(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r) Factory method that constructs an introspector that has all information needed for deserialization purposes.abstract T
ClassIntrospector.forDirectClassAnnotations
(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r) Factory method that constructs an introspector that only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.abstract T
ClassIntrospector.forSerialization
(SerializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r) Factory method that constructs an introspector that has all information needed for serialization purposes.final TypeResolverBuilder
<?> MapperConfig.getDefaultTyper
(JavaType baseType) Method called to locate a type info handler for types that do not have one explicitly declared via annotations (or other configuration).final JsonSerializer
<Object> SerializerProvider.getKeySerializer
(JavaType valueType, BeanProperty property) Deprecated.As of version 1.8abstract boolean
DeserializerProvider.hasValueDeserializerFor
(DeserializationConfig config, JavaType type) Method called to find out whether provider would be able to find a deserializer for given type, using a root reference (i.e.<T extends BeanDescription>
TDeserializationConfig.introspect
(JavaType type) Method that will introspect full bean properties for the purpose of building a bean deserializer<T extends BeanDescription>
TSerializationConfig.introspect
(JavaType type) Method that will introspect full bean properties for the purpose of building a bean serializer<T extends BeanDescription>
TDeserializationConfig.introspectClassAnnotations
(JavaType type) Accessor for getting bean description that only contains class annotations: useful if no getter/setter/creator information is needed.abstract <DESC extends BeanDescription>
DESCMapperConfig.introspectClassAnnotations
(JavaType type) Accessor for getting bean description that only contains class annotations: useful if no getter/setter/creator information is needed.<T extends BeanDescription>
TSerializationConfig.introspectClassAnnotations
(JavaType type) Accessor for getting bean description that only contains class annotations: useful if no getter/setter/creator information is needed.<T extends BeanDescription>
TDeserializationConfig.introspectDirectClassAnnotations
(JavaType type) Accessor for getting bean description that only contains immediate class annotations: ones from the class, and its direct mix-in, if any, but not from super types.abstract <DESC extends BeanDescription>
DESCMapperConfig.introspectDirectClassAnnotations
(JavaType type) Accessor for getting bean description that only contains immediate class annotations: ones from the class, and its direct mix-in, if any, but not from super types.<T extends BeanDescription>
TSerializationConfig.introspectDirectClassAnnotations
(JavaType type) Accessor for getting bean description that only contains immediate class annotations: ones from the class, and its direct mix-in, if any, but not from super types.<T extends BeanDescription>
TDeserializationConfig.introspectForCreation
(JavaType type) Method that will introspect subset of bean properties needed to construct bean instance.abstract JavaType
DeserializerFactory.mapAbstractType
(DeserializationConfig config, JavaType type) Method that can be called to try to resolve an abstract type (interface, abstract class) into a concrete type, or at least something "more concrete" (abstract class instead of interface).abstract JavaType
DeserializerProvider.mapAbstractType
(DeserializationConfig config, JavaType type) Method that can be called to try to resolve an abstract type (interface, abstract class) into a concrete type, or at least something "more concrete" (abstract class instead of interface).Factory method for constructingObjectReader
that will read or update instances of specified type<T> T
<T> T
<T> T
<T> T
ObjectMapper.readValue
(InputStream src, JavaType valueType) <T> T
<T> T
<T> T
<T> T
Convenience method for converting results from given JSON tree into given value type.<T> T
ObjectMapper.readValue
(JsonParser jp, JavaType valueType) Method to deserialize JSON content into a Java type, reference to which is passed as argument.<T> T
ObjectMapper.readValue
(JsonParser jp, JavaType valueType, DeserializationConfig cfg) Method to deserialize JSON content into a Java type, reference to which is passed as argument.<T> T
ObjectReader.readValue
(JsonParser jp, JavaType valueType) Convenience method that binds content read using given parser, using configuration of this reader, except that expected value type is specified with the call (instead of currently configured root type).<T> MappingIterator
<T> ObjectMapper.readValues
(JsonParser jp, JavaType valueType) Method for reading sequence of Objects from parser stream.<T> Iterator
<T> ObjectReader.readValues
(JsonParser jp, JavaType valueType) Convenience method that is equivalent to:AbstractTypeResolver.resolveAbstractType
(DeserializationConfig config, JavaType type) Method called to try to resolve an abstract type into concrete type (usually for purposes of deserializing), when no concrete implementation was found.abstract void
SerializerProvider.serializeValue
(SerializationConfig cfg, JsonGenerator jgen, Object value, JavaType rootType, SerializerFactory jsf) The method to be called byObjectMapper
to execute recursive serialization, using serializers that this provider has access to; and using specified root type for locating first-level serializer.ObjectMapper.typedWriter
(JavaType rootType) Deprecated.Since 1.9, useObjectMapper.writerWithType(JavaType)
instead.abstract JsonMappingException
DeserializationContext.unknownTypeException
(JavaType baseType, String id) Helper method for constructing exception to indicate that given type id (parsed from JSON) could not be converted to a Java type.boolean
ObjectMapper.DefaultTypeResolverBuilder.useForType
(JavaType t) Method called to check if the default type handler should be used for given type.Method for constructing a new reader instance that is configured to data bind into specified type.Method that will construct a new instance that uses specific type as the root type for serialization, instead of runtime dynamic type of the root object itself.ObjectMapper.writerWithType
(JavaType rootType) Factory method for constructingObjectWriter
that will serialize objects using specified root type, instead of actual runtime type of value.Constructors in org.codehaus.jackson.map with parameters of type JavaTypeModifierConstructorDescriptionprotected
BeanDescription
(JavaType type) protected
MappingIterator
(JavaType type, JsonParser jp, DeserializationContext ctxt, JsonDeserializer<?> deser) protected
MappingIterator
(JavaType type, JsonParser jp, DeserializationContext ctxt, JsonDeserializer<?> deser, boolean closeParser, Object valueToUpdate) protected
ObjectReader
(ObjectMapper mapper, DeserializationConfig config, JavaType valueType, Object valueToUpdate, FormatSchema schema, InjectableValues injectableValues) protected
ObjectReader
(ObjectReader base, DeserializationConfig config, JavaType valueType, Object valueToUpdate, FormatSchema schema, InjectableValues injectableValues) Copy constructor used for building variations.protected
ObjectWriter
(ObjectMapper mapper, SerializationConfig config, JavaType rootType, PrettyPrinter pp) Constructor used byObjectMapper
for initial instantiationprotected
ObjectWriter
(ObjectWriter base, SerializationConfig config, JavaType rootType, PrettyPrinter pp, FormatSchema s) Copy constructor used for building variations.Std
(String name, JavaType type, Annotations contextAnnotations, AnnotatedMember member) -
Uses of JavaType in org.codehaus.jackson.map.deser
Fields in org.codehaus.jackson.map.deser declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaType
AbstractDeserializer._baseType
protected final JavaType
BeanDeserializer._beanType
Declared type of the bean this deserializer handles.protected final JavaType
SettableAnyProperty._type
protected final JavaType
SettableBeanProperty._type
Base type for property; may be a supertype of actual value.Fields in org.codehaus.jackson.map.deser with type parameters of type JavaTypeModifier and TypeFieldDescriptionprotected static final HashMap
<JavaType, JsonDeserializer<Object>> BasicDeserializerFactory._arrayDeserializers
And finally, we have special array deserializers for primitive array typesprotected final ConcurrentHashMap
<JavaType, JsonDeserializer<Object>> StdDeserializerProvider._cachedDeserializers
We will also cache some dynamically constructed deserializers; specifically, ones that are expensive to construct.protected final HashMap
<JavaType, JsonDeserializer<Object>> StdDeserializerProvider._incompleteDeserializers
During deserializer construction process we may need to keep track of partially completed deserializers, to resolve cyclic dependencies.Methods in org.codehaus.jackson.map.deser with type parameters of type JavaTypeModifier and TypeMethodDescriptionprotected <T extends JavaType>
TBasicDeserializerFactory.modifyTypeByAnnotation
(DeserializationConfig config, Annotated a, T type, String propName) Method called to see if given method has annotations that indicate a more specific type than what the argument specifies.Methods in org.codehaus.jackson.map.deser that return JavaTypeModifier and TypeMethodDescriptionprotected JavaType
BeanDeserializerFactory._mapAbstractType2
(DeserializationConfig config, JavaType type) Method that will find abstract type mapping for specified type, doing a single lookup through registered abstract type resolvers; will not do recursive lookups.ValueInstantiator.getDelegateType()
Method that can be used to determine what is the type of delegate type to use, if any; if no delegates are used, will return null.SettableAnyProperty.getType()
SettableBeanProperty.getType()
BeanDeserializer.getValueType()
abstract JavaType
BasicDeserializerFactory.mapAbstractType
(DeserializationConfig config, JavaType type) BeanDeserializerFactory.mapAbstractType
(DeserializationConfig config, JavaType type) Method that will find complete abstract type mapping for specified type, doing as many resolution steps as necessary.StdDeserializerProvider.mapAbstractType
(DeserializationConfig config, JavaType type) protected JavaType
BeanDeserializerFactory.materializeAbstractType
(DeserializationConfig config, BasicBeanDescription beanDesc) protected JavaType
BasicDeserializerFactory.resolveType
(DeserializationConfig config, BasicBeanDescription beanDesc, JavaType type, AnnotatedMember member, BeanProperty property) Helper method used to resolve method return types and field types.Methods in org.codehaus.jackson.map.deser with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected JsonDeserializer
<Object> StdDeserializerProvider._createAndCache2
(DeserializationConfig config, JavaType type, BeanProperty property) Method that handles actual construction (via factory) and caching (both intermediate and eventual)protected JsonDeserializer
<Object> StdDeserializerProvider._createAndCacheValueDeserializer
(DeserializationConfig config, JavaType type, BeanProperty property) Method that will try to create a deserializer for given type, and resolve and cache it if necessaryprotected JsonDeserializer
<Object> StdDeserializerProvider._createDeserializer
(DeserializationConfig config, JavaType type, BeanProperty property) protected JsonDeserializer
<Object> StdDeserializerProvider._findCachedDeserializer
(JavaType type) protected JsonDeserializer
<Object> BeanDeserializerFactory._findCustomBeanDeserializer
(JavaType type, DeserializationConfig config, DeserializerProvider provider, BasicBeanDescription beanDesc, BeanProperty property) protected KeyDeserializer
StdDeserializerProvider._handleUnknownKeyDeserializer
(JavaType type) protected JsonDeserializer
<Object> StdDeserializerProvider._handleUnknownValueDeserializer
(JavaType type) protected JavaType
BeanDeserializerFactory._mapAbstractType2
(DeserializationConfig config, JavaType type) Method that will find abstract type mapping for specified type, doing a single lookup through registered abstract type resolvers; will not do recursive lookups.void
BeanDeserializerBuilder.addInjectable
(String propertyName, JavaType propertyType, Annotations contextAnnotations, AnnotatedMember member, Object valueId) BeanDeserializerFactory.buildBeanDeserializer
(DeserializationConfig config, JavaType type, BasicBeanDescription beanDesc, BeanProperty property) Method that is to actually build a bean deserializer instance.BeanDeserializerFactory.buildThrowableDeserializer
(DeserializationConfig config, JavaType type, BasicBeanDescription beanDesc, BeanProperty property) protected void
BeanDeserializerFactory.checkIllegalTypes
(JavaType type) BeanDeserializerFactory.createBeanDeserializer
(DeserializationConfig config, DeserializerProvider p, JavaType type, BeanProperty property) Method thatDeserializerProvider
s call to create a new deserializer for types other than Collections, Maps, arrays and enums.CustomDeserializerFactory.createBeanDeserializer
(DeserializationConfig config, DeserializerProvider p, JavaType type, BeanProperty property) Deprecated.BasicDeserializerFactory.createEnumDeserializer
(DeserializationConfig config, DeserializerProvider p, JavaType type, BeanProperty property) Factory method for constructing serializers ofEnum
types.CustomDeserializerFactory.createEnumDeserializer
(DeserializationConfig config, DeserializerProvider p, JavaType enumType, BeanProperty property) Deprecated.BeanDeserializerFactory.createKeyDeserializer
(DeserializationConfig config, JavaType type, BeanProperty property) BasicDeserializerFactory.createTreeDeserializer
(DeserializationConfig config, DeserializerProvider p, JavaType nodeType, BeanProperty property) StdDeserializerProvider.findExpectedRootName
(DeserializationConfig config, JavaType type) StdDeserializerProvider.findKeyDeserializer
(DeserializationConfig config, JavaType type, BeanProperty property) BasicDeserializerFactory.findPropertyContentTypeDeserializer
(DeserializationConfig config, JavaType containerType, AnnotatedMember propertyEntity, BeanProperty property) Method called to find and create a type information deserializer for values of given container (list, array, map) property, if one is needed.BasicDeserializerFactory.findPropertyTypeDeserializer
(DeserializationConfig config, JavaType baseType, AnnotatedMember annotated, BeanProperty property) Method called to create a type information deserializer for values of given non-container property, if one is needed.protected JsonDeserializer
<Object> BasicDeserializerFactory.findStdBeanDeserializer
(DeserializationConfig config, DeserializerProvider p, JavaType type, BeanProperty property) Method called byBeanDeserializerFactory
to see if there might be a standard deserializer registered for given type.BasicDeserializerFactory.findTypeDeserializer
(DeserializationConfig config, JavaType baseType, BeanProperty property) StdDeserializerProvider.findTypedValueDeserializer
(DeserializationConfig config, JavaType type, BeanProperty property) StdDeserializerProvider.findValueDeserializer
(DeserializationConfig config, JavaType propertyType, BeanProperty property) boolean
StdDeserializerProvider.hasValueDeserializerFor
(DeserializationConfig config, JavaType type) Method that can be called to find out whether a deserializer can be found for given typeabstract JavaType
BasicDeserializerFactory.mapAbstractType
(DeserializationConfig config, JavaType type) BeanDeserializerFactory.mapAbstractType
(DeserializationConfig config, JavaType type) Method that will find complete abstract type mapping for specified type, doing as many resolution steps as necessary.StdDeserializerProvider.mapAbstractType
(DeserializationConfig config, JavaType type) protected JavaType
BasicDeserializerFactory.resolveType
(DeserializationConfig config, BasicBeanDescription beanDesc, JavaType type, AnnotatedMember member, BeanProperty property) Helper method used to resolve method return types and field types.StdDeserializationContext.unknownTypeException
(JavaType type, String id) Constructors in org.codehaus.jackson.map.deser with parameters of type JavaTypeModifierConstructorDescriptionBeanDeserializer
(AnnotatedClass forClass, JavaType type, BeanProperty property, CreatorCollector creators, BeanPropertyMap properties, Map<String, SettableBeanProperty> backRefs, HashSet<String> ignorableProps, boolean ignoreAllUnknown, SettableAnyProperty anySetter) Deprecated.(since 1.9) Use the constructor that takesValueInstantiator
insteadprotected
BeanDeserializer
(AnnotatedClass forClass, JavaType type, BeanProperty property, ValueInstantiator valueInstantiator, BeanPropertyMap properties, Map<String, SettableBeanProperty> backRefs, HashSet<String> ignorableProps, boolean ignoreAllUnknown, SettableAnyProperty anySetter, List<ValueInjector> injectables) CollectionDeserializer
(JavaType collectionType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, Constructor<Collection<Object>> defCtor) Deprecated.Since 1.9, use variant that takes ValueInstantiatorCollectionDeserializer
(JavaType collectionType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator) Deprecated.FieldProperty
(String name, JavaType type, TypeDeserializer typeDeser, Annotations contextAnnotations, AnnotatedField field) MapDeserializer
(JavaType mapType, Constructor<Map<Object, Object>> defCtor, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser) Deprecated.Since 1.9, use variant that takes ValueInstantiatorMapDeserializer
(JavaType mapType, ValueInstantiator valueInstantiator, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser) Deprecated.MethodProperty
(String name, JavaType type, TypeDeserializer typeDeser, Annotations contextAnnotations, AnnotatedMethod method) protected
NullProvider
(JavaType type, Object nullValue) SettableAnyProperty
(BeanProperty property, Method rawSetter, JavaType type, JsonDeserializer<Object> valueDeser) SettableAnyProperty
(BeanProperty property, AnnotatedMethod setter, JavaType type) Deprecated.Since 1.9 - use variant that takes deserializerSettableAnyProperty
(BeanProperty property, AnnotatedMethod setter, JavaType type, JsonDeserializer<Object> valueDeser) protected
SettableBeanProperty
(String propName, JavaType type, TypeDeserializer typeDeser, Annotations contextAnnotations) SetterlessProperty
(String name, JavaType type, TypeDeserializer typeDeser, Annotations contextAnnotations, AnnotatedMethod method) protected
StdDeserializer
(JavaType valueType) Deprecated. -
Uses of JavaType in org.codehaus.jackson.map.deser.impl
Constructors in org.codehaus.jackson.map.deser.impl with parameters of type JavaTypeModifierConstructorDescriptionCreatorProperty
(String name, JavaType type, TypeDeserializer typeDeser, Annotations contextAnnotations, AnnotatedParameter param, int index, Object injectableValueId) ValueInjector
(String propertyName, JavaType type, Annotations contextAnnotations, AnnotatedMember mutator, Object valueId) -
Uses of JavaType in org.codehaus.jackson.map.deser.std
Fields in org.codehaus.jackson.map.deser.std declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaType
ObjectArrayDeserializer._arrayType
protected final JavaType
CollectionDeserializer._collectionType
protected final JavaType
StringCollectionDeserializer._collectionType
protected JavaType
StdValueInstantiator._delegateType
protected final JavaType
MapDeserializer._mapType
protected final JavaType
AtomicReferenceDeserializer._referencedType
Type of value that we referenceFields in org.codehaus.jackson.map.deser.std with type parameters of type JavaTypeModifier and TypeFieldDescriptionprotected final HashMap
<JavaType, KeyDeserializer> StdKeyDeserializers._keyDeserializers
Methods in org.codehaus.jackson.map.deser.std that return JavaTypeModifier and TypeMethodDescriptionJavaTypeDeserializer.deserialize
(JsonParser jp, DeserializationContext ctxt) CollectionDeserializer.getContentType()
abstract JavaType
ContainerDeserializerBase.getContentType()
Accessor for declared type of contained value elements; either exact type, or one of its supertypes.MapDeserializer.getContentType()
ObjectArrayDeserializer.getContentType()
StringCollectionDeserializer.getContentType()
StdValueInstantiator.getDelegateType()
MapDeserializer.getValueType()
StdDeserializer.getValueType()
Exact structured type deserializer handles, if known.Methods in org.codehaus.jackson.map.deser.std that return types with arguments of type JavaTypeModifier and TypeMethodDescriptionstatic HashMap
<JavaType, KeyDeserializer> StdKeyDeserializers.constructAll()
static HashMap
<JavaType, JsonDeserializer<Object>> PrimitiveArrayDeserializers.getAll()
Methods in org.codehaus.jackson.map.deser.std with parameters of type JavaTypeModifier and TypeMethodDescriptionvoid
StdValueInstantiator.configureFromObjectSettings
(AnnotatedWithParams defaultCreator, AnnotatedWithParams delegateCreator, JavaType delegateType, AnnotatedWithParams withArgsCreator, CreatorProperty[] constructorArgs) Method for setting properties related to instantiating values from JSON Object.static KeyDeserializer
StdKeyDeserializers.constructStringKeyDeserializer
(DeserializationConfig config, JavaType type) protected JsonDeserializer
<Object> StdDeserializer.findDeserializer
(DeserializationConfig config, DeserializerProvider provider, JavaType type, BeanProperty property) Helper method used to locate deserializers for properties the type this deserializer handles contains (usually for properties of bean types)static KeyDeserializer
StdKeyDeserializers.findStringBasedKeyDeserializer
(DeserializationConfig config, JavaType type) Constructors in org.codehaus.jackson.map.deser.std with parameters of type JavaTypeModifierConstructorDescriptionAtomicReferenceDeserializer
(JavaType referencedType, BeanProperty property) protected
CollectionDeserializer
(JavaType collectionType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, Constructor<Collection<Object>> defCtor) Deprecated.Since 1.9, use variant that takes ValueInstantiatorCollectionDeserializer
(JavaType collectionType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator) protected
MapDeserializer
(JavaType mapType, Constructor<Map<Object, Object>> defCtor, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser) Deprecated.Since 1.9, use variant that takes ValueInstantiatorMapDeserializer
(JavaType mapType, ValueInstantiator valueInstantiator, KeyDeserializer keyDeser, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser) protected
StdDeserializer
(JavaType valueType) protected
StdScalarDeserializer
(JavaType valueType) StdValueInstantiator
(DeserializationConfig config, JavaType valueType) StringCollectionDeserializer
(JavaType collectionType, JsonDeserializer<?> valueDeser, ValueInstantiator valueInstantiator) -
Uses of JavaType in org.codehaus.jackson.map.ext
Methods in org.codehaus.jackson.map.ext with parameters of type JavaTypeModifier and TypeMethodDescriptionOptionalHandlerFactory.findDeserializer
(JavaType type, DeserializationConfig config, DeserializerProvider p) OptionalHandlerFactory.findSerializer
(SerializationConfig config, JavaType type) -
Uses of JavaType in org.codehaus.jackson.map.introspect
Fields in org.codehaus.jackson.map.introspect declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaType
POJOPropertiesCollector._type
Type of POJO for which properties are being collected.Methods in org.codehaus.jackson.map.introspect that return JavaTypeModifier and TypeMethodDescriptionAnnotated.getType
(TypeBindings context) Full generic type of the annotated element; definition of what exactly this means depends on sub-class.AnnotatedConstructor.getType
(TypeBindings bindings) As per [JACKSON-468], we need to also allow declaration of local type bindings; mostly it will allow defining bounds.AnnotatedMethod.getType
(TypeBindings bindings) As per [JACKSON-468], we need to also allow declaration of local type bindings; mostly it will allow defining bounds.protected JavaType
AnnotatedWithParams.getType
(TypeBindings bindings, TypeVariable<?>[] typeParams) POJOPropertiesCollector.getType()
final JavaType
AnnotatedWithParams.resolveParameterType
(int index, TypeBindings bindings) Method called to fully resolve type of one of parameters, given specified type variable bindings.BasicBeanDescription.resolveType
(Type jdkType) Methods in org.codehaus.jackson.map.introspect with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected BasicBeanDescription
BasicClassIntrospector._findCachedDesc
(JavaType type) Method called to see if type is one of core JDK types that we have cached for efficiency.protected TypeResolverBuilder
<?> JacksonAnnotationIntrospector._findTypeResolver
(MapperConfig<?> config, Annotated ann, JavaType baseType) Helper method called to construct and initialize instance ofTypeResolverBuilder
if given annotated element indicates one is needed.BasicClassIntrospector.classWithCreators
(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r) BasicClassIntrospector.collectProperties
(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, boolean forSerialization) protected POJOPropertiesCollector
BasicClassIntrospector.constructPropertyCollector
(MapperConfig<?> config, AnnotatedClass ac, JavaType type, boolean forSerialization) Overridable method called for creatingPOJOPropertiesCollector
instance to use; override is needed if a custom sub-class is to be used.Class
<?> JacksonAnnotationIntrospector.findDeserializationContentType
(Annotated am, JavaType baseContentType, String propName) Class
<?> NopAnnotationIntrospector.findDeserializationContentType
(Annotated am, JavaType t, String propName) Class
<?> JacksonAnnotationIntrospector.findDeserializationKeyType
(Annotated am, JavaType baseKeyType, String propName) Class
<?> NopAnnotationIntrospector.findDeserializationKeyType
(Annotated am, JavaType t, String propName) Class
<?> JacksonAnnotationIntrospector.findDeserializationType
(Annotated am, JavaType baseType, String propName) Class
<?> NopAnnotationIntrospector.findDeserializationType
(Annotated am, JavaType t, String propName) JacksonAnnotationIntrospector.findPropertyContentTypeResolver
(MapperConfig<?> config, AnnotatedMember am, JavaType containerType) Since 1.7, it is possible to useJsonTypeInfo
from a property too.JacksonAnnotationIntrospector.findPropertyTypeResolver
(MapperConfig<?> config, AnnotatedMember am, JavaType baseType) Since 1.7, it is possible to useJsonTypeInfo
from a property too.Class
<?> JacksonAnnotationIntrospector.findSerializationContentType
(Annotated am, JavaType baseType) Class
<?> JacksonAnnotationIntrospector.findSerializationKeyType
(Annotated am, JavaType baseType) JacksonAnnotationIntrospector.findTypeResolver
(MapperConfig<?> config, AnnotatedClass ac, JavaType baseType) BasicClassIntrospector.forClassAnnotations
(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r) BasicClassIntrospector.forCreation
(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r) BasicClassIntrospector.forDeserialization
(DeserializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r) BasicClassIntrospector.forDirectClassAnnotations
(MapperConfig<?> cfg, JavaType type, ClassIntrospector.MixInResolver r) static BasicBeanDescription
BasicBeanDescription.forOtherUse
(MapperConfig<?> config, JavaType type, AnnotatedClass ac) Factory method to use for constructing an instance to use for purposes other than building serializers or deserializers; will only have information on class, not on properties.BasicClassIntrospector.forSerialization
(SerializationConfig cfg, JavaType type, ClassIntrospector.MixInResolver r) Constructors in org.codehaus.jackson.map.introspect with parameters of type JavaTypeModifierConstructorDescriptionBasicBeanDescription
(MapperConfig<?> config, JavaType type, AnnotatedClass ac) Deprecated.Since 1.9, should use factory methods insteadprotected
BasicBeanDescription
(MapperConfig<?> config, JavaType type, AnnotatedClass ac, List<BeanPropertyDefinition> properties) protected
POJOPropertiesCollector
(MapperConfig<?> config, boolean forSerialization, JavaType type, AnnotatedClass classDef) -
Uses of JavaType in org.codehaus.jackson.map.jsontype
Methods in org.codehaus.jackson.map.jsontype that return JavaTypeModifier and TypeMethodDescriptionTypeIdResolver.typeFromId
(String id) Method called to resolve type from given type identifier.Methods in org.codehaus.jackson.map.jsontype with parameters of type JavaTypeModifier and TypeMethodDescriptionTypeResolverBuilder.buildTypeDeserializer
(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes, BeanProperty property) Method for building type deserializer based on current configuration of this builder.TypeResolverBuilder.buildTypeSerializer
(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes, BeanProperty property) Method for building type serializer based on current configuration of this builder.void
Method that will be called once before any type resolution calls; used to initialize instance with configuration. -
Uses of JavaType in org.codehaus.jackson.map.jsontype.impl
Fields in org.codehaus.jackson.map.jsontype.impl declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaType
TypeDeserializerBase._baseType
protected final JavaType
TypeIdResolverBase._baseType
Common base type for all polymorphic instances handled.protected final JavaType
TypeDeserializerBase._defaultImpl
Type to use as the default implementation, if type id is missing or can not be resolved.Fields in org.codehaus.jackson.map.jsontype.impl with type parameters of type JavaTypeModifier and TypeFieldDescriptionTypeNameIdResolver._idToType
Mappings from type id to JavaType, used for deserializationMethods in org.codehaus.jackson.map.jsontype.impl that return JavaTypeModifier and TypeMethodDescriptionClassNameIdResolver.typeFromId
(String id) MinimalClassNameIdResolver.typeFromId
(String id) TypeNameIdResolver.typeFromId
(String id) Methods in org.codehaus.jackson.map.jsontype.impl with parameters of type JavaTypeModifier and TypeMethodDescriptionStdTypeResolverBuilder.buildTypeDeserializer
(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes, BeanProperty property) StdTypeResolverBuilder.buildTypeSerializer
(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes, BeanProperty property) static TypeNameIdResolver
TypeNameIdResolver.construct
(MapperConfig<?> config, JavaType baseType, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) protected TypeIdResolver
StdTypeResolverBuilder.idResolver
(MapperConfig<?> config, JavaType baseType, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration.void
void
SubTypeValidator.validateSubType
(JavaType type) Constructors in org.codehaus.jackson.map.jsontype.impl with parameters of type JavaTypeModifierConstructorDescriptionAsArrayTypeDeserializer
(JavaType bt, TypeIdResolver idRes, BeanProperty property) Deprecated.AsArrayTypeDeserializer
(JavaType bt, TypeIdResolver idRes, BeanProperty property, Class<?> defaultImpl) AsExternalTypeDeserializer
(JavaType bt, TypeIdResolver idRes, BeanProperty property, Class<?> defaultImpl, String typePropName) AsPropertyTypeDeserializer
(JavaType bt, TypeIdResolver idRes, BeanProperty property, Class<?> defaultImpl, String typePropName) AsPropertyTypeDeserializer
(JavaType bt, TypeIdResolver idRes, BeanProperty property, String typePropName) Deprecated.AsWrapperTypeDeserializer
(JavaType bt, TypeIdResolver idRes, BeanProperty property) Deprecated.AsWrapperTypeDeserializer
(JavaType bt, TypeIdResolver idRes, BeanProperty property, Class<?> defaultImpl) ClassNameIdResolver
(JavaType baseType, TypeFactory typeFactory) protected
MinimalClassNameIdResolver
(JavaType baseType, TypeFactory typeFactory) protected
TypeDeserializerBase
(JavaType baseType, TypeIdResolver idRes, BeanProperty property) Deprecated.Since 1.9, use the constructor that takes 'defaultImpl'protected
TypeDeserializerBase
(JavaType baseType, TypeIdResolver idRes, BeanProperty property, Class<?> defaultImpl) protected
TypeIdResolverBase
(JavaType baseType, TypeFactory typeFactory) protected
TypeNameIdResolver
(MapperConfig<?> config, JavaType baseType, HashMap<String, String> typeToId, HashMap<String, JavaType> idToType) -
Uses of JavaType in org.codehaus.jackson.map.module
Methods in org.codehaus.jackson.map.module that return JavaTypeModifier and TypeMethodDescriptionSimpleAbstractTypeResolver.findTypeMapping
(DeserializationConfig config, JavaType type) SimpleAbstractTypeResolver.resolveAbstractType
(DeserializationConfig config, JavaType type) Methods in org.codehaus.jackson.map.module with parameters of type JavaTypeModifier and TypeMethodDescriptionSimpleDeserializers.findBeanDeserializer
(JavaType type, DeserializationConfig config, DeserializerProvider provider, BeanDescription beanDesc, BeanProperty property) SimpleKeyDeserializers.findKeyDeserializer
(JavaType type, DeserializationConfig config, BeanDescription beanDesc, BeanProperty property) SimpleSerializers.findSerializer
(SerializationConfig config, JavaType type, BeanDescription beanDesc, BeanProperty property) SimpleAbstractTypeResolver.findTypeMapping
(DeserializationConfig config, JavaType type) SimpleAbstractTypeResolver.resolveAbstractType
(DeserializationConfig config, JavaType type) -
Uses of JavaType in org.codehaus.jackson.map.ser
Fields in org.codehaus.jackson.map.ser declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaType
BeanPropertyWriter._cfgSerializationType
Type to use for locating serializer; normally same as return type of the accessor method, but may be overridden by annotations.protected final JavaType
BeanPropertyWriter._declaredType
Type property is declared to have, either in class definition or associated annotations.protected JavaType
BeanPropertyWriter._nonTrivialBaseType
Base type of the property, if the declared type is "non-trivial"; meaning it is either a structured type (collection, map, array), or parametrized.Methods in org.codehaus.jackson.map.ser with type parameters of type JavaTypeModifier and TypeMethodDescriptionprotected static <T extends JavaType>
TBasicSerializerFactory.modifySecondaryTypesByAnnotation
(SerializationConfig config, Annotated a, T type) protected <T extends JavaType>
TBasicSerializerFactory.modifyTypeByAnnotation
(SerializationConfig config, Annotated a, T type) Helper method used to encapsulate details of annotation-based type coercionMethods in org.codehaus.jackson.map.ser that return JavaTypeModifier and TypeMethodDescriptionprotected JavaType
PropertyBuilder.findSerializationType
(Annotated a, boolean useStaticTyping, JavaType declaredType) Method that will try to determine statically defined type of property being serialized, based on annotations (for overrides), and alternatively declared type (if static typing for serialization is enabled).BeanPropertyWriter.getSerializationType()
BeanPropertyWriter.getType()
Methods in org.codehaus.jackson.map.ser with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected JsonSerializer
<Object> StdSerializerProvider._createAndCacheUntypedSerializer
(JavaType type, BeanProperty property) protected JsonSerializer
<Object> StdSerializerProvider._createUntypedSerializer
(JavaType type, BeanProperty property) protected void
StdSerializerProvider._reportIncompatibleRootType
(Object value, JavaType rootType) protected void
StdSerializerProvider._serializeValue
(JsonGenerator jgen, Object value, JavaType rootType) Method called on the actual non-blueprint provider instance object, to kick off the serialization, when root type is explicitly specified and not determined from value.BasicSerializerFactory.buildContainerSerializer
(SerializationConfig config, JavaType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping) protected JsonSerializer
<?> BasicSerializerFactory.buildEnumMapSerializer
(SerializationConfig config, JavaType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forEnumMap
types.protected JsonSerializer
<?> BasicSerializerFactory.buildEnumSetSerializer
(SerializationConfig config, JavaType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) protected JsonSerializer
<?> BasicSerializerFactory.buildIterableSerializer
(SerializationConfig config, JavaType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping) protected JsonSerializer
<?> BasicSerializerFactory.buildIteratorSerializer
(SerializationConfig config, JavaType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping) protected BeanPropertyWriter
PropertyBuilder.buildWriter
(String name, JavaType declaredType, JsonSerializer<Object> ser, TypeSerializer typeSer, TypeSerializer contentTypeSer, AnnotatedMember am, boolean defaultUseStaticTyping) BeanSerializerFactory.createKeySerializer
(SerializationConfig config, JavaType type, BeanProperty property) abstract JsonSerializer
<Object> BasicSerializerFactory.createSerializer
(SerializationConfig config, JavaType type, BeanProperty property) BeanSerializerFactory.createSerializer
(SerializationConfig config, JavaType origType, BeanProperty property) Main serializer constructor method.CustomSerializerFactory.createSerializer
(SerializationConfig config, JavaType type, BeanProperty property) BasicSerializerFactory.createTypeSerializer
(SerializationConfig config, JavaType baseType, BeanProperty property) Method called to construct a type serializer for values with given declared base type.BeanSerializerFactory.findBeanSerializer
(SerializationConfig config, JavaType type, BasicBeanDescription beanDesc, BeanProperty property) Method that will try to construct aBeanSerializer
for given class.StdSerializerProvider.findKeySerializer
(JavaType keyType, BeanProperty property) BeanSerializerFactory.findPropertyContentTypeSerializer
(JavaType containerType, SerializationConfig config, AnnotatedMember accessor, BeanProperty property) Method called to create a type information serializer for values of given container property if one is needed.BeanSerializerFactory.findPropertyTypeSerializer
(JavaType baseType, SerializationConfig config, AnnotatedMember accessor, BeanProperty property) Method called to create a type information serializer for values of given non-container property if one is needed.protected JavaType
PropertyBuilder.findSerializationType
(Annotated a, boolean useStaticTyping, JavaType declaredType) Method that will try to determine statically defined type of property being serialized, based on annotations (for overrides), and alternatively declared type (if static typing for serialization is enabled).final JsonSerializer
<?> BasicSerializerFactory.findSerializerByAddonType
(SerializationConfig config, JavaType javaType, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping) Reflection-based serialized find method, which checks if given class implements one of recognized "add-on" interfaces.final JsonSerializer
<?> BasicSerializerFactory.findSerializerByLookup
(JavaType type, SerializationConfig config, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping) Method that will use fast lookup (and identity comparison) methods to see if we know serializer to use for given type.final JsonSerializer
<?> BasicSerializerFactory.findSerializerByPrimaryType
(JavaType type, SerializationConfig config, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping) Method for checking if we can determine serializer to use based on set of known primary types, checking for set of known base types (exact matches having been compared against withfindSerializerByLookup
).StdSerializerProvider.findTypedValueSerializer
(JavaType valueType, boolean cache, BeanProperty property) StdSerializerProvider.findValueSerializer
(JavaType valueType, BeanProperty property) This variant was added in 1.5, to allow for efficient access using full structured types, not just classes.protected Object
PropertyBuilder.getContainerValueChecker
(String propertyName, JavaType propertyType) Helper method called to see if we need a comparator Object to check if values of a container (Collection, array) property should be suppressed.protected Object
PropertyBuilder.getEmptyValueChecker
(String propertyName, JavaType propertyType) Helper method called to see if we need a comparator Object to check if values of specified type are consider empty.final void
StdSerializerProvider.serializeValue
(SerializationConfig config, JsonGenerator jgen, Object value, JavaType rootType, SerializerFactory jsf) void
BeanPropertyWriter.setNonTrivialBaseType
(JavaType t) Method called to define type to consider as "non-trivial" basetype, needed for dynamic serialization resolution for complex (usually container) typesConstructors in org.codehaus.jackson.map.ser with parameters of type JavaTypeModifierConstructorDescriptionBeanPropertyWriter
(AnnotatedMember member, Annotations contextAnnotations, String name, JavaType declaredType, JsonSerializer<Object> ser, TypeSerializer typeSer, JavaType serType, Method m, Field f, boolean suppressNulls, Object suppressableValue) BeanPropertyWriter
(AnnotatedMember member, Annotations contextAnnotations, SerializedString name, JavaType declaredType, JsonSerializer<Object> ser, TypeSerializer typeSer, JavaType serType, Method m, Field f, boolean suppressNulls, Object suppressableValue) BeanSerializer
(JavaType type, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties, AnyGetterWriter anyGetterWriter, Object filterId) protected
MapSerializer
(HashSet<String> ignoredEntries, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts) Deprecated.Use variant that takes Key type and property informationprotected
MapSerializer
(HashSet<String> ignoredEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<Object> keySerializer, BeanProperty property) Deprecated.As of 1.8, use version that takes valueSerializerprotected
MapSerializer
(HashSet<String> ignoredEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer, BeanProperty property) Deprecated.protected
SerializerBase
(JavaType type) Deprecated. -
Uses of JavaType in org.codehaus.jackson.map.ser.impl
Fields in org.codehaus.jackson.map.ser.impl declared as JavaTypeMethods in org.codehaus.jackson.map.ser.impl with parameters of type JavaTypeModifier and TypeMethodDescriptionvoid
SerializerCache.addAndResolveNonTypedSerializer
(JavaType type, JsonSerializer<Object> ser, SerializerProvider provider) void
SerializerCache.addTypedSerializer
(JavaType type, JsonSerializer<Object> ser) Method called if none of lookups succeeded, and caller had to construct a serializer.PropertySerializerMap.findAndAddSerializer
(JavaType type, SerializerProvider provider, BeanProperty property) void
SerializerCache.TypeKey.resetTyped
(JavaType type) void
SerializerCache.TypeKey.resetUntyped
(JavaType type) ReadOnlyClassToSerializerMap.typedValueSerializer
(JavaType type) SerializerCache.typedValueSerializer
(JavaType type) ReadOnlyClassToSerializerMap.untypedValueSerializer
(JavaType type) SerializerCache.untypedValueSerializer
(JavaType type) Constructors in org.codehaus.jackson.map.ser.impl with parameters of type JavaType -
Uses of JavaType in org.codehaus.jackson.map.ser.std
Fields in org.codehaus.jackson.map.ser.std declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaType
AsArraySerializerBase._elementType
protected final JavaType
ObjectArraySerializer._elementType
Declared type of element entriesprotected final JavaType
MapSerializer._keyType
Declared type of keysprotected final JavaType
EnumMapSerializer._valueType
protected final JavaType
MapSerializer._valueType
Declared type of contained valuesprotected static final JavaType
MapSerializer.UNSPECIFIED_TYPE
Methods in org.codehaus.jackson.map.ser.std with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected final JsonSerializer
<Object> AsArraySerializerBase._findAndAddDynamic
(PropertySerializerMap map, JavaType type, SerializerProvider provider) protected final JsonSerializer
<Object> MapSerializer._findAndAddDynamic
(PropertySerializerMap map, JavaType type, SerializerProvider provider) protected final JsonSerializer
<Object> ObjectArraySerializer._findAndAddDynamic
(PropertySerializerMap map, JavaType type, SerializerProvider provider) static ContainerSerializerBase
<?> StdContainerSerializers.collectionSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) static MapSerializer
MapSerializer.construct
(String[] ignoredList, JavaType mapType, boolean staticValueType, TypeSerializer vts, BeanProperty property) Deprecated.As of 1.8; use the variant with more argumentsstatic MapSerializer
MapSerializer.construct
(String[] ignoredList, JavaType mapType, boolean staticValueType, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer) static JsonSerializer
<?> StdContainerSerializers.enumSetSerializer
(JavaType enumType, BeanProperty property) static JsonSerializer
<Object> StdKeySerializers.getStdKeySerializer
(JavaType keyType) static ContainerSerializerBase
<?> StdContainerSerializers.indexedListSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) protected boolean
JsonValueSerializer.isNaturalTypeWithStdHandling
(JavaType type, JsonSerializer<?> ser) static ContainerSerializerBase
<?> StdContainerSerializers.iterableSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property) static ContainerSerializerBase
<?> StdContainerSerializers.iteratorSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property) Constructors in org.codehaus.jackson.map.ser.std with parameters of type JavaTypeModifierConstructorDescriptionprotected
AsArraySerializerBase
(Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, BeanProperty property) Deprecated.since 1.8protected
AsArraySerializerBase
(Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> elementSerializer) protected
BeanSerializerBase
(JavaType type, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties, AnyGetterWriter anyGetterWriter, Object filterId) CollectionSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) EnumMapSerializer
(JavaType valueType, boolean staticTyping, EnumValues keyEnums, TypeSerializer vts, BeanProperty property) Deprecated.Since 1.8, use variant that takes value serializerEnumMapSerializer
(JavaType valueType, boolean staticTyping, EnumValues keyEnums, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) EnumSetSerializer
(JavaType elemType, BeanProperty property) IndexedListSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) IterableSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property) IteratorSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property) protected
MapSerializer
(HashSet<String> ignoredEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer, BeanProperty property) ObjectArraySerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property) Deprecated.since 1.8ObjectArraySerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> elementSerializer) protected
SerializerBase
(JavaType type) -
Uses of JavaType in org.codehaus.jackson.map.type
Subclasses of JavaType in org.codehaus.jackson.map.typeModifier and TypeClassDescriptionfinal class
Array types represent Java arrays, both primitive and object valued.class
Type that represents things that act similar toCollection
; but may or may not be instances of that interface.final class
Type that represents Java Collection types (Lists, Sets).class
Type that represents Map-like types; things that consist of key/value pairs but that do not necessarily implementMap
, but that do not have enough introspection functionality to allow for some level of generic handling.final class
Type that represents "true" Java Map types.final class
Simple types are defined as anything other than one of recognized container types (arrays, Collections, Maps).class
Fields in org.codehaus.jackson.map.type declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaType
ArrayType._componentType
Type of elements in the array.protected final JavaType
TypeBindings._contextType
Context type used for resolving all types, if specified.protected final JavaType
CollectionLikeType._elementType
Type of elements in collectionprotected final JavaType
MapLikeType._keyType
Type of keys of Map.protected final JavaType[]
SimpleType._typeParameters
Generic type arguments for this type.protected final JavaType
MapLikeType._valueType
Type of values of Map.static final JavaType
TypeBindings.UNBOUND
Marker to use for (temporarily) unbound references.Fields in org.codehaus.jackson.map.type with type parameters of type JavaTypeModifier and TypeFieldDescriptionTypeBindings._bindings
Lazily-instantiated bindings of resolved type parametersMethods in org.codehaus.jackson.map.type that return JavaTypeModifier and TypeMethodDescriptionTypeFactory._constructType
(Type type, TypeBindings context) 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
(GenericArrayType type, TypeBindings context) protected JavaType
TypeFactory._fromClass
(Class<?> clz, TypeBindings context) protected JavaType
TypeFactory._fromParameterizedClass
(Class<?> clz, List<JavaType> paramTypes) Method used byTypeParser
when generics-aware version is constructed.protected JavaType
TypeFactory._fromParamType
(ParameterizedType type, TypeBindings context) This method deals with parameterized types, that is, first class generic classes.protected JavaType
TypeFactory._fromVariable
(TypeVariable<?> type, TypeBindings context) protected JavaType
TypeFactory._fromWildcard
(WildcardType type, TypeBindings context) protected JavaType
Handling of narrowing conversions for arrays is trickier: for now, it is not even allowed.protected JavaType
protected JavaType
protected JavaType
protected JavaType
protected JavaType
protected JavaType
TypeFactory._resolveVariableViaSubTypes
(HierarchicType leafType, String variableName, TypeBindings bindings) protected JavaType
TypeFactory._unknownType()
static JavaType
Deprecated.static JavaType
Deprecated.static JavaType
TypeFactory.collectionType
(Class<? extends Collection> collectionType, Class<?> elementType) Deprecated.static JavaType
TypeFactory.collectionType
(Class<? extends Collection> collectionType, JavaType elementType) Deprecated.TypeFactory.constructFromCanonical
(String canonical) Factory method for constructing aJavaType
out of its canonical representation (seetoCanonical()
).TypeFactory.constructParametricType
(Class<?> parametrized, Class<?>... parameterClasses) Factory method for constructingJavaType
that represents a parameterized type.TypeFactory.constructParametricType
(Class<?> parametrized, JavaType... parameterTypes) Factory method for constructingJavaType
that represents a parameterized type.TypeFactory.constructSimpleType
(Class<?> rawType, JavaType[] parameterTypes) Method for constructing a type instance with specified parameterization.TypeFactory.constructSpecializedType
(JavaType baseType, Class<?> subclass) Factory method for creating a subtype of given base type, as defined by specified subclass; but retaining generic type information if any.TypeFactory.constructType
(Type type) TypeFactory.constructType
(Type type, Class<?> context) TypeFactory.constructType
(Type type, TypeBindings bindings) TypeFactory.constructType
(Type type, JavaType context) TypeFactory.constructType
(TypeReference<?> typeRef) ArrayType.containedType
(int index) CollectionLikeType.containedType
(int index) MapLikeType.containedType
(int index) SimpleType.containedType
(int index) static JavaType
TypeFactory.fastSimpleType
(Class<?> cls) Deprecated.static JavaType[]
TypeFactory.findParameterTypes
(Class<?> clz, Class<?> expType) Deprecated.static JavaType[]
TypeFactory.findParameterTypes
(Class<?> clz, Class<?> expType, TypeBindings bindings) Deprecated.static JavaType[]
TypeFactory.findParameterTypes
(JavaType type, Class<?> expType) Deprecated.JavaType[]
TypeFactory.findTypeParameters
(Class<?> clz, Class<?> expType) JavaType[]
TypeFactory.findTypeParameters
(Class<?> clz, Class<?> expType, TypeBindings bindings) JavaType[]
TypeFactory.findTypeParameters
(JavaType type, Class<?> expType) Method that is to figure out actual type parameters that given class binds to generic types defined by given (generic) interface or class.static JavaType
TypeFactory.fromCanonical
(String canonical) static JavaType
Deprecated.UseTypeFactory.type(Type)
insteadstatic JavaType
Deprecated.UseTypeFactory.type(Type)
insteadstatic JavaType
TypeFactory.fromTypeReference
(TypeReference<?> ref) Deprecated.UseTypeFactory.type(Type)
insteadArrayType.getContentType()
CollectionLikeType.getContentType()
MapLikeType.getContentType()
MapLikeType.getKeyType()
static JavaType
Deprecated.static JavaType
Deprecated.abstract JavaType
TypeModifier.modifyType
(JavaType type, Type jdkType, TypeBindings context, TypeFactory typeFactory) Method called to let modifier change constructed type definition.ArrayType.narrowContentsBy
(Class<?> contentClass) For array types, both main type and content type can be modified; but ultimately they are interchangeable.CollectionLikeType.narrowContentsBy
(Class<?> contentClass) CollectionType.narrowContentsBy
(Class<?> contentClass) MapLikeType.narrowContentsBy
(Class<?> contentClass) MapType.narrowContentsBy
(Class<?> contentClass) SimpleType.narrowContentsBy
(Class<?> subclass) static JavaType
TypeFactory.parametricType
(Class<?> parametrized, Class<?>... parameterClasses) Deprecated.static JavaType
TypeFactory.parametricType
(Class<?> parametrized, JavaType... parameterTypes) Deprecated.protected JavaType
TypeParser.parseType
(org.codehaus.jackson.map.type.TypeParser.MyTokenizer tokens) TypeBindings.resolveType
(Class<?> cls) TypeBindings.resolveType
(Type type) static JavaType
TypeFactory.specialize
(JavaType baseType, Class<?> subclass) Deprecated.static JavaType
Deprecated.static JavaType
Deprecated.static JavaType
TypeFactory.type
(Type type, TypeBindings bindings) Deprecated.static JavaType
Deprecated.static JavaType
TypeFactory.type
(TypeReference<?> ref) Deprecated.JavaType[]
TypeBindings.typesAsArray()
TypeFactory.uncheckedSimpleType
(Class<?> cls) Method that will force construction of a simple type, without trying to check for more specialized types.static JavaType
TypeFactory.unknownType()
Method for constructing a marker type that indicates missing generic type information, which is handled same as simple type forjava.lang.Object
.ArrayType.widenContentsBy
(Class<?> contentClass) CollectionLikeType.widenContentsBy
(Class<?> contentClass) CollectionType.widenContentsBy
(Class<?> contentClass) MapLikeType.widenContentsBy
(Class<?> contentClass) MapType.widenContentsBy
(Class<?> contentClass) SimpleType.widenContentsBy
(Class<?> subclass) SimpleType.withContentTypeHandler
(Object h) Methods in org.codehaus.jackson.map.type that return types with arguments of type JavaTypeModifier and TypeMethodDescriptionTypeParser.parseTypes
(org.codehaus.jackson.map.type.TypeParser.MyTokenizer tokens) Methods in org.codehaus.jackson.map.type with parameters of type JavaTypeModifier and TypeMethodDescriptionvoid
TypeBindings.addBinding
(String name, JavaType type) static JavaType
Deprecated.static JavaType
TypeFactory.collectionType
(Class<? extends Collection> collectionType, JavaType elementType) Deprecated.static ArrayType
Deprecated.Since 1.9, if you must directly instantiate, call method that takes handlersstatic ArrayType
static CollectionLikeType
static CollectionType
static MapLikeType
static MapType
TypeFactory.constructArrayType
(JavaType elementType) Method for constructing anArrayType
.TypeFactory.constructCollectionLikeType
(Class<?> collectionClass, JavaType elementType) Method for constructing aCollectionLikeType
.TypeFactory.constructCollectionType
(Class<? extends Collection> collectionClass, JavaType elementType) Method for constructing aCollectionType
.TypeFactory.constructMapLikeType
(Class<?> mapClass, JavaType keyType, JavaType valueType) Method for constructing aMapLikeType
instanceTypeFactory.constructMapType
(Class<? extends Map> mapClass, JavaType keyType, JavaType valueType) Method for constructing aMapType
instanceTypeFactory.constructParametricType
(Class<?> parametrized, JavaType... parameterTypes) Factory method for constructingJavaType
that represents a parameterized type.TypeFactory.constructSimpleType
(Class<?> rawType, JavaType[] parameterTypes) Method for constructing a type instance with specified parameterization.TypeFactory.constructSpecializedType
(JavaType baseType, Class<?> subclass) Factory method for creating a subtype of given base type, as defined by specified subclass; but retaining generic type information if any.TypeFactory.constructType
(Type type, JavaType context) static JavaType[]
TypeFactory.findParameterTypes
(JavaType type, Class<?> expType) Deprecated.JavaType[]
TypeFactory.findTypeParameters
(JavaType type, Class<?> expType) Method that is to figure out actual type parameters that given class binds to generic types defined by given (generic) interface or class.static JavaType
Deprecated.abstract JavaType
TypeModifier.modifyType
(JavaType type, Type jdkType, TypeBindings context, TypeFactory typeFactory) Method called to let modifier change constructed type definition.static JavaType
TypeFactory.parametricType
(Class<?> parametrized, JavaType... parameterTypes) Deprecated.static JavaType
TypeFactory.specialize
(JavaType baseType, Class<?> subclass) Deprecated.static JavaType
Deprecated.Method parameters in org.codehaus.jackson.map.type with type arguments of type JavaTypeModifier and TypeMethodDescriptionprotected JavaType
TypeFactory._fromParameterizedClass
(Class<?> clz, List<JavaType> paramTypes) Method used byTypeParser
when generics-aware version is constructed.Constructors in org.codehaus.jackson.map.type with parameters of type JavaTypeModifierConstructorDescriptionprotected
CollectionLikeType
(Class<?> collT, JavaType elemT) Deprecated.protected
CollectionLikeType
(Class<?> collT, JavaType elemT, Object valueHandler, Object typeHandler) protected
MapLikeType
(Class<?> mapType, JavaType keyT, JavaType valueT) Deprecated.protected
MapLikeType
(Class<?> mapType, JavaType keyT, JavaType valueT, Object valueHandler, Object typeHandler) protected
SimpleType
(Class<?> cls, String[] typeNames, JavaType[] typeParams) Deprecated.protected
SimpleType
(Class<?> cls, String[] typeNames, JavaType[] typeParams, Object valueHandler, Object typeHandler) TypeBindings
(TypeFactory typeFactory, JavaType type) -
Uses of JavaType in org.codehaus.jackson.map.util
Fields in org.codehaus.jackson.map.util declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaType
JSONPObject._serializationType
Optional static type to use for serialization; if null, runtime type is used.protected final JavaType
JSONWrappedObject._serializationType
Optional static type to use for serialization; if null, runtime type is used.Methods in org.codehaus.jackson.map.util that return JavaTypeModifier and TypeMethodDescriptionJSONPObject.getSerializationType()
JSONWrappedObject.getSerializationType()
Methods in org.codehaus.jackson.map.util with parameters of type JavaTypeModifier and TypeMethodDescriptionRootNameLookup.findRootName
(JavaType rootType, MapperConfig<?> config) Constructors in org.codehaus.jackson.map.util with parameters of type JavaTypeModifierConstructorDescriptionJSONPObject
(String function, Object value, JavaType asType) JSONWrappedObject
(String prefix, String suffix, Object value, JavaType asType) -
Uses of JavaType in org.codehaus.jackson.type
Methods in org.codehaus.jackson.type that return JavaTypeModifier and TypeMethodDescriptionprotected abstract JavaType
protected JavaType
Default implementation is just to call_narrow(java.lang.Class<?>)
, since underlying type construction is usually identicalJavaType.containedType
(int index) Method for accessing definitions of contained ("child") types.JavaType.forcedNarrowBy
(Class<?> subclass) More efficient version ofnarrowBy(java.lang.Class<?>)
, called by internal framework in cases where compatibility checks are to be skipped.JavaType.getContentType()
Method for accessing content type of this type, if type has such a thing: simple types do not, structured types do (like arrays, Collections and Maps)JavaType.getKeyType()
Method for accessing key type for this type, assuming type has such a concept (only Map types do)Method that can be called to do a "narrowing" conversions; that is, to return a type with a raw class that is assignable to the raw class of this type.abstract JavaType
JavaType.narrowContentsBy
(Class<?> contentClass) Method that can be called to do a "widening" conversions; that is, to return a type with a raw class that could be assigned from this type.abstract JavaType
JavaType.widenContentsBy
(Class<?> contentClass) abstract JavaType
JavaType.withContentTypeHandler
(Object h) "Copy method" that will construct a new instance that is identical to this instance, except that its content type will have specified type handler assigned.JavaType.withContentValueHandler
(Object h) abstract JavaType
JavaType.withTypeHandler
(Object h) "Copy method" that will construct a new instance that is identical to this instance, except that it will have specified type handler assigned.JavaType.withValueHandler
(Object h) -
Uses of JavaType in org.codehaus.jackson.xc
Fields in org.codehaus.jackson.xc declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaType
XmlAdapterJsonDeserializer._valueType
protected static final JavaType
XmlAdapterJsonDeserializer.ADAPTER_TYPE
Methods in org.codehaus.jackson.xc with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected Class
<?> JaxbAnnotationIntrospector._doFindDeserializationType
(Annotated a, JavaType baseType, String propName) Class
<?> JaxbAnnotationIntrospector.findDeserializationContentType
(Annotated a, JavaType baseContentType, String propName) Class
<?> JaxbAnnotationIntrospector.findDeserializationKeyType
(Annotated am, JavaType baseKeyType, String propName) Class
<?> JaxbAnnotationIntrospector.findDeserializationType
(Annotated a, JavaType baseType, String propName) JAXB does allow specifying (more) concrete class for deserialization by using \@XmlElement annotation.JaxbAnnotationIntrospector.findPropertyContentTypeResolver
(MapperConfig<?> config, AnnotatedMember am, JavaType containerType) JaxbAnnotationIntrospector.findPropertyTypeResolver
(MapperConfig<?> config, AnnotatedMember am, JavaType baseType) JaxbAnnotationIntrospector.findTypeResolver
(MapperConfig<?> config, AnnotatedClass ac, JavaType baseType)