Uses of Class
tools.jackson.databind.JavaType
Packages that use JavaType
Package
Description
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.Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
tools.jackson.databind).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.
Package that contains standard value and key deserializer implementations
Jackson uses for core JDK types.
Package that contains standard value and key deserializer base classes
that Jackson both uses for its own implementations and offers for
module developers as convenient partial implementations.
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.
Package that contains handlers specific to datatypes introduced in Java 8.
Package that contains handlers specific to SQL datatypes.
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
Classes used for exposing logical structure of POJOs as Jackson
sees it, and exposed via
ObjectMapper.acceptJsonFormatVisitor(Class, JsonFormatVisitorWrapper)
and
ObjectMapper.acceptJsonFormatVisitor(tools.jackson.databind.JavaType, JsonFormatVisitorWrapper)
methods.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
JacksonModules
(which are registered on ObjectMapper via builders}.Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
Utility classes for Mapper package.
-
Uses of JavaType in tools.jackson.databind
Fields in tools.jackson.databind declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeBeanDescription._typeBean type information, including raw class and possible generics informationprotected final JavaTypeBeanDescription.SupplierBase._typeprotected final JavaTypeBeanProperty.Std._typeprotected final JavaTypeMappingIterator._typeType to bind individual elements to.protected final JavaTypeObjectReader._valueTypeDeclared type of value to instantiate during deserialization.protected static final JavaTypeObjectReader.JSON_NODE_TYPEFields in tools.jackson.databind with type parameters of type JavaTypeModifier and TypeFieldDescriptionprotected LinkedNode<JavaType>DeserializationContext._currentTypeType ofValueDeserializeron whichValueDeserializer.createContextual(tools.jackson.databind.DeserializationContext, tools.jackson.databind.BeanProperty)is being called currently.protected final ConcurrentHashMap<JavaType,ValueDeserializer<Object>> ObjectMapper._rootDeserializersWe will use a separate main-level Map for keeping track of root-level deserializers.protected final ConcurrentHashMap<JavaType,ValueDeserializer<Object>> ObjectReader._rootDeserializersRoot-level cached deserializers.Methods in tools.jackson.databind that return JavaTypeModifier and TypeMethodDescriptionabstract JavaTypeDatabindContext.constructSpecializedType(JavaType baseType, Class<?> subclass) Convenience method for constructing subtypes, retaining generic type parameter (if any).DeserializationContext.constructSpecializedType(JavaType baseType, Class<?> subclass) SerializationContext.constructSpecializedType(JavaType baseType, Class<?> subclass) DatabindContext.constructType(Type type) final JavaTypeDeserializationContext.constructType(Class<?> cls) Convenience method, functionally equivalent to:ObjectMapper.constructType(Type type) Convenience method for constructingJavaTypeout of given type (typicallyjava.lang.Class), but without explicit context.ObjectMapper.constructType(TypeReference<?> typeReference) Convenience method for constructingJavaTypeout of given type reference.abstract JavaTypeJavaType.containedType(int index) JavaType.containedTypeOrUnknown(int index) Convenience method that is functionally same as:JavaType t = containedType(index); if (t == null) { t = TypeFactory.unknownType(); }and typically used to eliminate need for null checks for common case where we just want to check if containedType is available first; and if not, use "unknown type" (which translates tojava.lang.Objectbasically).abstract JavaTypeJavaType.findSuperType(Class<?> erasedTarget) Method that may be called to find representation of given type within type hierarchy of this type: either this type (if this type has given erased type), one of its supertypes that has the erased types, or null if target is neither this type or any of its supertypes.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.abstract JavaType[]JavaType.findTypeParameters(Class<?> expType) Method that may be used to find paramaterization this type has for given type-erased generic target type.JavaType.getContentType()DeserializationContext.getContextualType()Accessor toJavaTypeof currently contextualizedValueDeserializer, if any.JavaType.getKeyType()JavaType.getReferencedType()abstract JavaTypeJavaType.getSuperClass()Accessor for finding fully resolved parent class of this type, if it has one; null if not.BeanDescription.getType()Method for accessing declared type of bean being introspected, including full generic type information (from declaration)BeanDescription.Supplier.getType()BeanDescription.SupplierBase.getType()BeanProperty.Bogus.getType()BeanProperty.getType()Method to get declared type of the property.BeanProperty.Std.getType()ObjectReader.getValueType()DeserializationContext.handleMissingTypeId(JavaType baseType, TypeIdResolver idResolver, String extraDesc) DeserializationContext.handleUnknownTypeId(JavaType baseType, String id, TypeIdResolver idResolver, String extraDesc) Method that deserializers should call if they encounter a type id (for polymorphic deserialization) that cannot be resolved to an actual type; usually since there is no mapping defined.DeserializationConfig.mapAbstractType(JavaType type) abstract JavaTypeJavaType.refine(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.AnnotationIntrospector.refineDeserializationType(MapperConfig<?> config, Annotated a, JavaType baseType) Method called to find out possible type refinements to use for deserialization.AnnotationIntrospector.refineSerializationType(MapperConfig<?> config, Annotated a, JavaType baseType) Method called to find out possible type refinements to use for deserialization, including not just value itself but key and/or content type, if type has those.AbstractTypeResolver.resolveAbstractType(DeserializationConfig config, BeanDescription.Supplier typeDescRef) Method called to try to resolve an abstract type into concrete type (usually for purposes of deserializing), when no concrete implementation was found.DatabindContext.resolveAndValidateSubType(JavaType baseType, String subClass, PolymorphicTypeValidator ptv) Lookup method similar toDatabindContext.resolveSubType(tools.jackson.databind.JavaType, java.lang.String)but one that also validates that resulting subtype is valid according to givenPolymorphicTypeValidator.DatabindContext.resolveSubType(JavaType baseType, String subClassName) Lookup method called when code needs to resolve class name from input; usually simple lookup.abstract JavaTypeJavaType.withContentType(JavaType contentType) Mutant factory method that may be called on structured types that have a so-called content type (element of arrays, value type of Maps, referenced type of referential types), and will construct a new instance that is identical to this instance, except that it has specified content type, instead of current one.abstract JavaTypeJavaType.withContentTypeHandler(Object h) Internal method that should not be used by any code outside of jackson-databind: only used internally by databind.abstract JavaTypeJavaType.withContentValueHandler(Object h) Internal method that should not be used by any code outside of jackson-databind: only used internally by databind.JavaType.withHandlersFrom(JavaType src) Internal method that should not be used by any code outside of jackson-databind: only used internally by databind.abstract JavaTypeJavaType.withStaticTyping()Method that can be called to get a type instance that indicates that values of the type should be handled using "static typing" for purposes of serialization (as opposed to "dynamic" aka runtime typing): meaning that no runtime information is needed for determining serializers to use.abstract JavaTypeJavaType.withTypeHandler(Object h) Internal method that should not be used by any code outside of jackson-databind: only used internally by databind.abstract JavaTypeJavaType.withValueHandler(Object h) Internal method that should not be used by any code outside of jackson-databind: only used internally by databind.Methods in tools.jackson.databind that return types with arguments of type JavaTypeModifier and TypeMethodDescriptionJavaType.getInterfaces()Accessor for finding fully resolved interfaces this type implements, if any; empty array if none.Methods in tools.jackson.databind with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected abstract BeanDescriptionBeanDescription.LazySupplier._construct(JavaType forType, AnnotatedClass ac) protected ObjectActual conversion implementation: instead of using existing read and write methods, much of code is inlined.protected ValueSerializer<Object>SerializationContext._createAndCachePropertySerializer(Class<?> rawType, JavaType fullType, BeanProperty prop) Alternative toSerializationContext._createAndCacheUntypedSerializer(Class, JavaType), used when serializer is requested for given property.protected ValueSerializer<Object>SerializationContext._createAndCachePropertySerializer(JavaType type, BeanProperty prop) Alternative toSerializationContext._createAndCacheUntypedSerializer(JavaType), used when serializer is requested for given property.protected ValueSerializer<Object>SerializationContext._createAndCacheUntypedSerializer(Class<?> rawType, JavaType fullType) Method that will try to construct a value serializer; and if one is successfully created, cache it for reuse.protected ValueSerializer<Object>SerializationContext._createAndCacheUntypedSerializer(JavaType type) protected ValueDeserializer<Object>ObjectMapper._findRootDeserializer(DeserializationContext ctxt, JavaType valueType) Method called to locate deserializer for the passed root-level value.protected JsonTokenObjectMapper._initForReading(JsonParser p, JavaType targetType) Method called to ensure that given parser is ready for reading content for data binding.protected abstract AnnotatedClassBeanDescription.LazySupplier._introspect(JavaType forType) protected ObjectReaderObjectReader._new(ObjectReader base, DeserializationConfig config, JavaType valueType, ValueDeserializer<Object> rootDeser, Object valueToUpdate, FormatSchema schema, InjectableValues injectableValues) Factory method called by various "withXxx()" methodsprotected ObjectReaderObjectMapper._newReader(DeserializationConfig config, JavaType valueType, Object valueToUpdate, FormatSchema schema, InjectableValues injectableValues) Factory method sub-classes must override, to produceObjectReaderinstances of proper sub-typeprotected ObjectWriterObjectMapper._newWriter(SerializationConfig config, JavaType rootType, PrettyPrinter pp) Factory method sub-classes must override, to produceObjectWriterinstances of proper sub-typeprotected ValueDeserializer<Object>ObjectReader._prefetchRootDeserializer(JavaType valueType) Method called to locate deserializer ahead of time, if permitted by configuration.protected ObjectObjectMapper._readMapAndClose(DeserializationContextExt ctxt, JsonParser p0, JavaType valueType) protected ObjectObjectMapper._readValue(DeserializationContextExt ctxt, JsonParser p, JavaType valueType) Actual implementation of value reading+binding operation.protected voidSerializationContext._reportIncompatibleRootType(Object value, JavaType rootType) protected <T> TDatabindContext._throwNotASubtype(JavaType baseType, String subType) protected <T> TDatabindContext._throwSubtypeClassNotAllowed(JavaType baseType, String subType, PolymorphicTypeValidator ptv) protected <T> TDatabindContext._throwSubtypeNameNotAllowed(JavaType baseType, String subType, PolymorphicTypeValidator ptv) protected final voidObjectMapper._verifyNoTrailingTokens(JsonParser p, DeserializationContext ctxt, JavaType bindType) protected final voidObjectReader._verifyNoTrailingTokens(JsonParser p, DeserializationContext ctxt, JavaType bindType) protected SequenceWriterSequenceWriter._writeCloseableValue(Object value, JavaType type) voidObjectMapper.acceptJsonFormatVisitor(JavaType type, JsonFormatVisitorWrapper visitor) Method for visiting type hierarchy for given type, using specified visitor.voidObjectWriter.acceptJsonFormatVisitor(JavaType type, JsonFormatVisitorWrapper visitor) Method for visiting type hierarchy for given type, using specified visitor.voidValueSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType type) Default implementation simply callsJsonFormatVisitorWrapper.expectAnyFormat(JavaType).abstract JavaTypeDatabindContext.constructSpecializedType(JavaType baseType, Class<?> subclass) Convenience method for constructing subtypes, retaining generic type parameter (if any).DeserializationContext.constructSpecializedType(JavaType baseType, Class<?> subclass) SerializationContext.constructSpecializedType(JavaType baseType, Class<?> subclass) <T> TObjectMapper.convertValue(Object fromValue, JavaType toValueType) SerializationContext.findContentValueSerializer(JavaType valueType, BeanProperty property) Method similar toSerializationContext.findPrimaryPropertySerializer(JavaType, BeanProperty)but used for "content values", secondary types used by "primary" serializers for structured types like Arrays,Collections,Maps and so on.final ValueDeserializer<Object>DeserializationContext.findContextualValueDeserializer(JavaType type, BeanProperty prop) Method for finding a value deserializer, and creating a contextual version if necessary, for value reached via specified property.final KeyDeserializerDeserializationContext.findKeyDeserializer(JavaType keyType, BeanProperty prop) SerializationContext.findKeySerializer(JavaType keyType, BeanProperty property) Method called to get the serializer to use for serializing non-null Map keys.final ValueDeserializer<Object>DeserializationContext.findNonContextualValueDeserializer(JavaType type) Variant that will try to locate deserializer for current type, but without performing any contextualization (unlikeDeserializationContext.findContextualValueDeserializer(tools.jackson.databind.JavaType, tools.jackson.databind.BeanProperty)) or checking for need to create aTypeDeserializer(unlikeDeserializationContext.findRootValueDeserializer(JavaType).SerializationContext.findNullKeySerializer(JavaType serializationType, BeanProperty property) Method called to find a serializer to use for null values for given declared type.SerializationContext.findPrimaryPropertySerializer(JavaType valueType, BeanProperty property) Method used for locating "primary" property value serializer (one directly handling value of the property).DeserializationContext.findPropertyContentTypeDeserializer(JavaType containerType, AnnotatedMember accessor) Method called to find and create a type information deserializer for values of given container (list, array, map) property, if one is needed.DeserializationContext.findPropertyTypeDeserializer(JavaType baseType, AnnotatedMember accessor) Method called to create a type information deserializer for values of given non-container property, if one is needed.SerializationContext.findPropertyTypeSerializer(JavaType baseType, AnnotatedMember accessor) LikeSerializationContext.findTypeSerializer(JavaType), but for use from specific POJO property.abstract PropertyNameDatabindContext.findRootName(JavaType rootType) DeserializationContext.findRootName(JavaType rootType) SerializationContext.findRootName(JavaType rootType) final ValueDeserializer<Object>DeserializationContext.findRootValueDeserializer(JavaType type) Method for finding a deserializer for root-level value.SerializationContext.findRootValueSerializer(JavaType valueType) Method for finding (from cache) or creating (and caching) serializer for given type, without checking for polymorphic typing, and then contextualizing without actual property.DeserializationContext.findTypeDeserializer(JavaType baseType) Method called to find and create a type information deserializer for given base type, if one is needed.DeserializationContext.findTypeDeserializer(JavaType baseType, AnnotatedClass classAnnotations) SerializationContext.findTypedValueSerializer(JavaType valueType, boolean cache) 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.SerializationContext.findTypeSerializer(JavaType baseType) Method called to get theTypeSerializerto use for including Type Id necessary for serializing for the given Java class.SerializationContext.findTypeSerializer(JavaType baseType, AnnotatedClass classAnnotations) Method called to get theTypeSerializerto use for including Type Id necessary for serializing for the given Java class.SerializationContext.findValueSerializer(JavaType valueType) Method variant used when we do NOT want contextualization to happen; it will need to be done at a later point (many serializers are not in operational state before contextualization, call toValueSerializer.createContextual(SerializationContext, BeanProperty)), but caller wants to be able to do that at a later point; sometimes to avoid infinite loopsObjectWriter.Prefetch.forRootType(ObjectWriter parent, JavaType newType) 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.DeserializationContext.handleMissingTypeId(JavaType baseType, TypeIdResolver idResolver, String extraDesc) DeserializationContext.handlePrimaryContextualization(ValueDeserializer<?> deser, BeanProperty prop, JavaType type) Method called for primary property deserializers (ones directly created to deserialize values of a POJO property), to handle details of callingValueDeserializer.createContextual(tools.jackson.databind.DeserializationContext, tools.jackson.databind.BeanProperty)with given property context.DeserializationContext.handleSecondaryContextualization(ValueDeserializer<?> deser, BeanProperty prop, JavaType type) Method called for secondary property deserializers (ones NOT directly created to deal with an annotatable POJO property, but instead created as a component -- such as value deserializers for structured types, or deserializers for root values) to handle details of resolvingValueDeserializer.createContextual(tools.jackson.databind.DeserializationContext, tools.jackson.databind.BeanProperty)with given property context.DeserializationContext.handleUnexpectedToken(JavaType targetType, JsonParser p) Method that deserializers should call if the first token of the value to deserialize is of unexpected type (that is, type of token that deserializer cannot handle).DeserializationContext.handleUnexpectedToken(JavaType targetType, JsonToken t, JsonParser p, String msg, Object... msgArgs) Method that deserializers should call if the first token of the value to deserialize is of unexpected type (that is, type of token that deserializer cannot handle).DeserializationContext.handleUnknownTypeId(JavaType baseType, String id, TypeIdResolver idResolver, String extraDesc) Method that deserializers should call if they encounter a type id (for polymorphic deserialization) that cannot be resolved to an actual type; usually since there is no mapping defined.DeserializationContext.handleWeirdNativeValue(JavaType targetType, Object badValue, JsonParser p) final BeanDescriptionDatabindContext.introspectBeanDescription(JavaType type) Convenience method for doing full "for serialization or deserialization" introspection of specified type; results may be cached for duration (lifespan) of this context as well.abstract BeanDescriptionDatabindContext.introspectBeanDescription(JavaType type, AnnotatedClass classDef) DeserializationContext.introspectBeanDescription(JavaType type, AnnotatedClass ac) SerializationContext.introspectBeanDescription(JavaType type, AnnotatedClass ac) DeserializationContext.introspectBeanDescriptionForBuilder(JavaType builderType, BeanDescription valueTypeDesc) DeserializationContext.introspectBeanDescriptionForCreation(JavaType type) DeserializationContext.introspectBeanDescriptionForCreation(JavaType type, AnnotatedClass ac) DatabindContext.introspectClassAnnotations(JavaType type) DatabindContext.introspectDirectClassAnnotations(JavaType type) protected abstract DatabindExceptionDatabindContext.invalidTypeIdException(JavaType baseType, String typeId, String extraDesc) Helper method for constructing exception to indicate that given type id could not be resolved to a valid subtype of specified base type.DeserializationContext.invalidTypeIdException(JavaType baseType, String typeId, String extraDesc) SerializationContext.invalidTypeIdException(JavaType baseType, String typeId, String extraDesc) DatabindContext.lazyIntrospectBeanDescription(JavaType type) DeserializationContext.lazyIntrospectBeanDescriptionForBuilder(JavaType builderType, BeanDescription valueTypeDesc) DeserializationContext.lazyIntrospectBeanDescriptionForCreation(JavaType type) DeserializationConfig.mapAbstractType(JavaType type) DeserializationContext.missingTypeIdException(JavaType baseType, String extraDesc) Factory method for constructingObjectReaderthat will read or update instances of specified type<T> TDeserializationContext.readPropertyValue(JsonParser p, BeanProperty prop, JavaType type) Same asDeserializationContext.readPropertyValue(JsonParser, BeanProperty, Class)but with fully resolvedJavaTypeas target: needs to be used for generic types, for example.<T> TDeserializationContext.readTreeAsValue(JsonNode n, JavaType targetType) Same asDeserializationContext.readTreeAsValue(JsonNode, Class)but will fully resolvedJavaTypeastargetType<T> TDeserializationContext.readValue(JsonParser p, JavaType type) <T> T<T> T<T> T<T> TMethod to deserialize JSON content from given file into given Java type.<T> TObjectMapper.readValue(InputStream src, JavaType valueType) <T> T<T> TMethod to deserialize JSON content from given JSON content String.<T> TMethod to deserialize JSON content from given path into given Java type.<T> TObjectMapper.readValue(JsonParser p, JavaType valueType) Type-safe overloaded method, basically alias forObjectMapper.readValue(JsonParser, Class).<T> TObjectMapper.readValue(TokenBuffer src, JavaType valueType) <T> MappingIterator<T>ObjectMapper.readValues(JsonParser p, JavaType valueType) Convenience method, equivalent in function to:<T> Iterator<T>ObjectReader.readValues(JsonParser p, JavaType valueType) Convenience method that is equivalent to:abstract JavaTypeJavaType.refine(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.AnnotationIntrospector.refineDeserializationType(MapperConfig<?> config, Annotated a, JavaType baseType) Method called to find out possible type refinements to use for deserialization.AnnotationIntrospector.refineSerializationType(MapperConfig<?> config, Annotated a, JavaType baseType) Method called to find out possible type refinements to use for deserialization, including not just value itself but key and/or content type, if type has those.abstract <T> TDatabindContext.reportBadDefinition(JavaType type, String msg) Helper method called to indicate a generic problem that stems from type definition(s), not input data, or input/output state; typically this means throwing aInvalidDefinitionException.<T> TDeserializationContext.reportBadDefinition(JavaType type, String msg) <T> TSerializationContext.reportBadDefinition(JavaType type, String msg) <T> TSerializationContext.reportBadDefinition(JavaType type, String msg, Throwable cause) <T> TDeserializationContext.reportInputMismatch(JavaType targetType, String msg, Object... msgArgs) Helper method used to indicate a problem with input in cases where more specificreportXxx()method was not available.<T> TDeserializationContext.reportPropertyInputMismatch(JavaType targetType, String propertyName, String msg, Object... msgArgs) Helper method used to indicate a problem with input in cases where more specificreportXxx()method was not available.voidDeserializationContext.reportWrongTokenException(JavaType targetType, JsonToken expToken, String msg, Object... msgArgs) Method for deserializers to call when the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.DatabindContext.resolveAndValidateSubType(JavaType baseType, String subClass, PolymorphicTypeValidator ptv) Lookup method similar toDatabindContext.resolveSubType(tools.jackson.databind.JavaType, java.lang.String)but one that also validates that resulting subtype is valid according to givenPolymorphicTypeValidator.DatabindContext.resolveSubType(JavaType baseType, String subClassName) Lookup method called when code needs to resolve class name from input; usually simple lookup.<T> TObjectMapper.treeToValue(TreeNode n, JavaType valueType) Same asObjectMapper.treeToValue(TreeNode, Class)but target type specified using fully resolvedJavaType.<T> TObjectReader.treeToValue(TreeNode n, JavaType valueType) Same asObjectReader.treeToValue(TreeNode, Class)but with type-resolved target value type.abstract JavaTypeJavaType.withContentType(JavaType contentType) Mutant factory method that may be called on structured types that have a so-called content type (element of arrays, value type of Maps, referenced type of referential types), and will construct a new instance that is identical to this instance, except that it has specified content type, instead of current one.JavaType.withHandlersFrom(JavaType src) Internal method that should not be used by any code outside of jackson-databind: only used internally by databind.Method for writing given value into output, as part of sequence to write; further, full type (often generic, likeMapis passed in case a newValueSerializerneeds to be fetched to handle type If root type was specified forObjectWriter, value must be of compatible type (same or subtype).Factory method for constructingObjectWriterthat will serialize objects using specified root type, instead of actual runtime type of value.DeserializationContext.wrongTokenException(JsonParser p, JavaType targetType, JsonToken expToken, String extra) Helper method for constructingDatabindExceptionto indicate that the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.Constructors in tools.jackson.databind with parameters of type JavaTypeModifierConstructorDescriptionprotectedBeanDescription(JavaType type) protectedCopy-constructor used when refining/upgrading type instances.protectedLazySupplier(MapperConfig<?> config, JavaType type) protectedMappingIterator(JavaType type, JsonParser p, DeserializationContext ctxt, ValueDeserializer<?> deser, boolean managedParser, Object valueToUpdate) protectedObjectReader(ObjectMapper mapper, DeserializationConfig config, JavaType valueType, Object valueToUpdate, FormatSchema schema, InjectableValues injectableValues) Constructor called when a root deserializer should be fetched based on other configuration.protectedObjectReader(ObjectReader base, DeserializationConfig config, JavaType valueType, ValueDeserializer<Object> rootDeser, Object valueToUpdate, FormatSchema schema, InjectableValues injectableValues) Copy constructor used for building variations.protectedObjectWriter(ObjectMapper mapper, SerializationConfig config, JavaType rootType, PrettyPrinter pp) Constructor used byObjectMapperfor initial instantiationStd(BeanProperty.Std base, JavaType newType) Std(PropertyName name, JavaType type, PropertyName wrapperName, AnnotatedMember member, PropertyMetadata metadata) protectedSupplierBase(MapperConfig<?> config, JavaType type) -
Uses of JavaType in tools.jackson.databind.cfg
Methods in tools.jackson.databind.cfg that return JavaTypeModifier and TypeMethodDescriptionabstract JavaTypeMapperConfig.constructType(Class<?> cls) Helper method that will constructJavaTypefor given raw class.abstract JavaTypeMapperConfig.constructType(TypeReference<?> valueTypeRef) Helper method that will constructJavaTypefor given type reference This is a simple short-cut for:final JavaTypeMapperConfigBase.constructType(Class<?> cls) final JavaTypeMapperConfigBase.constructType(TypeReference<?> valueTypeRef) Methods in tools.jackson.databind.cfg that return types with arguments of type JavaTypeModifier and TypeMethodDescriptionCacheProvider.forDeserializerCache(DeserializationConfig config) Method to provide aLookupCacheinstance for constructingDeserializerCache.DefaultCacheProvider.forDeserializerCache(DeserializationConfig config) Method to provide aLookupCacheinstance for constructingDeserializerCache.CacheProvider.forTypeFactory()Method to provide aLookupCacheinstance for constructingTypeFactory.DefaultCacheProvider.forTypeFactory()Methods in tools.jackson.databind.cfg with parameters of type JavaTypeModifier and TypeMethodDescriptionabstract PropertyNameMapperConfig.findRootName(DatabindContext ctxt, JavaType rootType) MapperConfigBase.findRootName(DatabindContext ctxt, JavaType rootType) 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). -
Uses of JavaType in tools.jackson.databind.deser
Fields in tools.jackson.databind.deser declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeAbstractDeserializer._baseTypeprotected final JavaTypeSettableAnyProperty._typeprotected final JavaTypeSettableBeanProperty._typeBase type for property; may be a supertype of actual value.Methods in tools.jackson.databind.deser that return JavaTypeModifier and TypeMethodDescriptionValueInstantiator.Delegating.getArrayDelegateType(DeserializationConfig config) ValueInstantiator.getArrayDelegateType(DeserializationConfig config) Method that can be used to determine what is the type of array delegate type to use, if any; if no delegates are used, will return null.ValueInstantiator.Delegating.getDelegateType(DeserializationConfig config) ValueInstantiator.getDelegateType(DeserializationConfig config) 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.BeanDeserializerBuilder.getType()SettableAnyProperty.getType()SettableBeanProperty.getType()DeserializationProblemHandler.handleMissingTypeId(DeserializationContext ctxt, JavaType baseType, TypeIdResolver idResolver, String failureMsg) Handler method called if an expected type id for a polymorphic value is not found and no "default type" is specified or allowed.DeserializationProblemHandler.handleUnknownTypeId(DeserializationContext ctxt, JavaType baseType, String subTypeId, TypeIdResolver idResolver, String failureMsg) Handler method called if resolution of type id from given String failed to produce a subtype; usually because logical id is not mapped to actual implementation class.protected JavaTypeBeanDeserializerFactory.materializeAbstractType(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) protected JavaTypeBasicDeserializerFactory.resolveMemberAndTypeAnnotations(DeserializationContext ctxt, AnnotatedMember member, JavaType type) Helper method used to resolve additional type-related annotation information like type overrides, or handler (serializer, deserializer) overrides, so that from declared field, property or constructor parameter type is used as the base and modified based on annotations, if any.Methods in tools.jackson.databind.deser with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected ValueDeserializer<Object>DeserializerCache._createAndCache2(DeserializationContext ctxt, DeserializerFactory factory, JavaType type, boolean isCustom) Method that handles actual construction (via factory) and caching (both intermediate and eventual)protected ValueDeserializer<Object>DeserializerCache._createAndCacheValueDeserializer(DeserializationContext ctxt, DeserializerFactory factory, JavaType type) Method that will try to create a deserializer for given type, and resolve and cache it if necessaryprotected ValueDeserializer<Object>DeserializerCache._createDeserializer(DeserializationContext ctxt, DeserializerFactory factory, JavaType type) Method that does the heavy lifting of checking for per-type annotations, find out full type, and figure out which actual factory method to call.protected ValueDeserializer<?>DeserializerCache._createDeserializer2(DeserializationContext ctxt, DeserializerFactory factory, JavaType type, BeanDescription.Supplier beanDescRef) protected ValueDeserializer<Object>DeserializerCache._findCachedDeserializer(JavaType type) protected ValueDeserializer<Object>BasicDeserializerFactory._findCustomBeanDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef) protected ValueDeserializer<?>BasicDeserializerFactory._findCustomEnumDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef) protected ValueDeserializer<?>BasicDeserializerFactory._findCustomTreeNodeDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef) protected ValueDeserializer<Object>BeanDeserializerFactory._findUnsupportedTypeDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) Helper method called to see if given type, otherwise to be taken as POJO type, is "known but not supported" JDK type, and if so, return alternate handler (deserializer).protected KeyDeserializerDeserializerCache._handleUnknownKeyDeserializer(DeserializationContext ctxt, JavaType type) protected ValueDeserializer<Object>DeserializerCache._handleUnknownValueDeserializer(DeserializationContext ctxt, JavaType type) protected CollectionTypeBasicDeserializerFactory._mapAbstractCollectionType(JavaType type, DeserializationConfig config) protected MapTypeBasicDeserializerFactory._mapAbstractMapType(JavaType type, DeserializationConfig config) protected ObjectDeserializationContextExt._unwrapAndDeserialize(JsonParser p, JavaType rootType, ValueDeserializer<Object> deser, Object valueToUpdate) protected voidBeanDeserializerFactory._validateSubType(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) voidBeanDeserializerBuilder.addInjectable(PropertyName propName, JavaType propType, Annotations contextAnnotations, AnnotatedMember member, Object valueId, Boolean optional, Boolean useInput) BeanDeserializerFactory.buildBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) Method that is to actually build a bean deserializer instance.BeanDeserializerBuilder.buildBuilderBased(JavaType valueType, String expBuildMethodName) Method for constructing a specialized deserializer that uses additional external Builder object during data binding.protected ValueDeserializer<Object>BeanDeserializerFactory.buildBuilderBasedDeserializer(DeserializationContext ctxt, JavaType valueType, BeanDescription.Supplier builderDescRef) Method for constructing a bean deserializer that uses specified intermediate Builder for binding data, and construction of the value instance.BeanDeserializerFactory.buildThrowableDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) static CreatorPropertyCreatorProperty.construct(PropertyName name, JavaType type, PropertyName wrapperName, TypeDeserializer typeDeser, Annotations contextAnnotations, AnnotatedParameter param, int index, JacksonInject.Value injectable, PropertyMetadata metadata) Factory method for creatingCreatorPropertyinstancesstatic SettableAnyPropertySettableAnyProperty.constructForJsonNodeField(DeserializationContext ctxt, BeanProperty property, AnnotatedMember field, JavaType valueType, ValueDeserializer<Object> valueDeser) static SettableAnyPropertySettableAnyProperty.constructForJsonNodeParameter(DeserializationContext ctxt, BeanProperty prop, AnnotatedMember mutator, JavaType valueType, ValueDeserializer<Object> valueDeser, int parameterIndex) static SettableAnyPropertySettableAnyProperty.constructForMapField(DeserializationContext ctxt, BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer typeDeser) static SettableAnyPropertySettableAnyProperty.constructForMapParameter(DeserializationContext ctxt, BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer typeDeser, int parameterIndex) static SettableAnyPropertySettableAnyProperty.constructForMethod(DeserializationContext ctxt, BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer typeDeser) protected SettableBeanPropertyBeanDeserializerFactory.constructSettableProperty(DeserializationContext ctxt, BeanDescription.Supplier beanDescRef, BeanPropertyDefinition propDef, JavaType propType0) Method that will construct a regular bean property setter using the given setter method.BeanDeserializerFactory.createBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) Method that called to create a new deserializer for types other than Collections, Maps, arrays, referential types or enums, or "well-known" JDK scalar types.abstract ValueDeserializer<Object>DeserializerFactory.createBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) 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.protected ValueDeserializer<?>BeanDeserializerBuilder.createBuilderBasedDeserializer(JavaType valueType, BeanPropertyMap propertyMap, boolean anyViews) Extension point for overriding the actual creation of the builder deserializer.BeanDeserializerFactory.createBuilderBasedDeserializer(DeserializationContext ctxt, JavaType valueType, BeanDescription.Supplier valueBeanDescRef, Class<?> builderClass) abstract ValueDeserializer<Object>DeserializerFactory.createBuilderBasedDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, Class<?> builderClass) Method called to create a deserializer that will use specified Builder class for building value instances.BasicDeserializerFactory.createEnumDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) Factory method for constructing deserializers ofEnumtypes.abstract ValueDeserializer<?>DeserializerFactory.createEnumDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) BasicDeserializerFactory.createKeyDeserializer(DeserializationContext ctxt, JavaType type) abstract KeyDeserializerDeserializerFactory.createKeyDeserializer(DeserializationContext ctxt, JavaType type) 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.BasicDeserializerFactory.createTreeDeserializer(DeserializationConfig config, JavaType nodeType, BeanDescription.Supplier beanDescRef) abstract ValueDeserializer<?>DeserializerFactory.createTreeDeserializer(DeserializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef) Method called to create and return a deserializer that can construct JsonNode(s) from JSON content.default ValueDeserializer<?>Deserializers.findBeanDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef) Method called to locate deserializer for specified value type which does not belong to any other category (not an Enum, Collection, Map, Array, reference value or tree node)static Class<?>BasicDeserializerFactory.ContainerDefaultMappings.findCollectionFallback(JavaType type) BasicDeserializerFactory.findDefaultDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) Helper method called to find one of default deserializers for "well-known" platform types: JDK-provided types, and small number of public Jackson API types.default ValueDeserializer<?>Deserializers.findEnumDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef) Method called to locate deserializer for specifiedEnumtype.DeserializerCache.findKeyDeserializer(DeserializationContext ctxt, DeserializerFactory factory, JavaType type) Method called to get hold of a deserializer to use for deserializing keys forMap.KeyDeserializers.findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef) static Class<?>BasicDeserializerFactory.ContainerDefaultMappings.findMapFallback(JavaType type) protected ValueDeserializer<?>BasicDeserializerFactory.findOptionalStdDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) Overridable method called after checking all other types.protected ValueDeserializer<?>BeanDeserializerFactory.findStdDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) Method called byBeanDeserializerFactoryto see if there might be a standard deserializer registered for given type.default ValueDeserializer<?>Deserializers.findTreeNodeDeserializer(JavaType nodeType, DeserializationConfig config, BeanDescription.Supplier beanDescRef) Method called to locate deserializer for specified JSON tree node type.DeserializerCache.findValueDeserializer(DeserializationContext ctxt, DeserializerFactory factory, JavaType propertyType) 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).DeserializationProblemHandler.handleMissingTypeId(DeserializationContext ctxt, JavaType baseType, TypeIdResolver idResolver, String failureMsg) Handler method called if an expected type id for a polymorphic value is not found and no "default type" is specified or allowed.DeserializationProblemHandler.handleUnexpectedToken(DeserializationContext ctxt, JavaType targetType, JsonToken t, JsonParser p, String failureMsg) Method that deserializers should call if the first token of the value to deserialize is of unexpected type (that is, type of token that deserializer cannot handle).DeserializationProblemHandler.handleUnknownTypeId(DeserializationContext ctxt, JavaType baseType, String subTypeId, TypeIdResolver idResolver, String failureMsg) Handler method called if resolution of type id from given String failed to produce a subtype; usually because logical id is not mapped to actual implementation class.DeserializationProblemHandler.handleWeirdNativeValue(DeserializationContext ctxt, JavaType targetType, Object valueToConvert, JsonParser p) Method called when an embedded (native) value (JsonToken.VALUE_EMBEDDED_OBJECT) cannot be converted directly into expected value type (usually POJO).protected JavaTypeBeanDeserializerFactory.materializeAbstractType(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) ValueDeserializerModifier.modifyEnumDeserializer(DeserializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, ValueDeserializer<?> deserializer) Method called byBeanDeserializerFactoryafter constructing default enum type deserializer instance.ValueDeserializerModifier.modifyKeyDeserializer(DeserializationConfig config, JavaType type, KeyDeserializer deserializer) Method called byDeserializerFactoryafter it has constructed the standard key deserializer for given key type.DeserializationContextExt.readRootValue(JsonParser p, JavaType valueType, ValueDeserializer<Object> deser, Object valueToUpdate) protected JavaTypeBasicDeserializerFactory.resolveMemberAndTypeAnnotations(DeserializationContext ctxt, AnnotatedMember member, JavaType type) Helper method used to resolve additional type-related annotation information like type overrides, or handler (serializer, deserializer) overrides, so that from declared field, property or constructor parameter type is used as the base and modified based on annotations, if any.Constructors in tools.jackson.databind.deser with parameters of type JavaTypeModifierConstructorDescriptionprotectedAbstractDeserializer(JavaType baseType) protectedCreatorProperty(PropertyName name, JavaType type, PropertyName wrapperName, TypeDeserializer typeDeser, Annotations contextAnnotations, AnnotatedParameter param, int index, JacksonInject.Value injectable, PropertyMetadata metadata) JsonNodeFieldAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, ValueDeserializer<Object> valueDeser, JsonNodeFactory nodeFactory) JsonNodeParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, ValueDeserializer<Object> valueDeser, JsonNodeFactory nodeFactory, int parameterIndex) MapFieldAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer typeDeser, ValueInstantiator inst) MapParameterAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer typeDeser, ValueInstantiator inst, int parameterIndex) MethodAnyProperty(BeanProperty property, AnnotatedMember field, JavaType valueType, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer typeDeser) Referring(UnresolvedForwardReference ref, JavaType beanType) SettableAnyProperty(BeanProperty property, AnnotatedMember setter, JavaType type, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer typeDeser) protectedSettableBeanProperty(BeanPropertyDefinition propDef, JavaType type, TypeDeserializer typeDeser, Annotations contextAnnotations) protectedSettableBeanProperty(PropertyName propName, JavaType type, PropertyMetadata metadata, ValueDeserializer<Object> valueDeser) Constructor only used byObjectIdValueProperty.protectedSettableBeanProperty(PropertyName propName, JavaType type, PropertyName wrapper, TypeDeserializer typeDeser, Annotations contextAnnotations, PropertyMetadata metadata) Constructor parameters in tools.jackson.databind.deser with type arguments of type JavaTypeModifierConstructorDescription -
Uses of JavaType in tools.jackson.databind.deser.bean
Fields in tools.jackson.databind.deser.bean declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeBeanDeserializerBase._beanTypeDeclared type of the bean this deserializer handles.protected final JavaTypeCreatorCollector._beanTypeType of bean being createdprotected final JavaTypeBeanAsArrayBuilderDeserializer._targetTypeType that the builder will produce, target type; as opposed to `handledType()` which refers to Builder class.protected final JavaTypeBuilderBasedDeserializer._targetTypeType that the builder will produce, target type; as opposed to `handledType()` which refers to Builder class.Methods in tools.jackson.databind.deser.bean that return JavaTypeMethods in tools.jackson.databind.deser.bean with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected PropertyMetadataBeanDeserializerBase._getSetterInfo(DeserializationContext ctxt, AnnotatedMember accessor, JavaType type) Method essentially copied fromBasicDeserializerFactory, needed to findPropertyMetadatafor Delegating Creator, for access to annotation-derived info.Constructors in tools.jackson.databind.deser.bean with parameters of type JavaTypeModifierConstructorDescriptionBeanAsArrayBuilderDeserializer(BeanDeserializerBase delegate, JavaType targetType, SettableBeanProperty[] ordered, AnnotatedMethod buildMethod) Main constructor used both for creating new instances (byBeanDeserializer.asArrayDeserializer()) and for creating copies with different delegate.BuilderBasedDeserializer(BeanDeserializerBuilder builder, BeanDescription.Supplier beanDescRef, JavaType targetType, BeanPropertyMap properties, Map<String, SettableBeanProperty> backRefs, Set<String> ignorableProps, boolean ignoreAllUnknown, boolean hasViews) Constructor used byBeanDeserializerBuilder.BuilderBasedDeserializer(BeanDeserializerBuilder builder, BeanDescription.Supplier beanDescRef, JavaType targetType, BeanPropertyMap properties, Map<String, SettableBeanProperty> backRefs, Set<String> ignorableProps, boolean ignoreAllUnknown, Set<String> includableProps, boolean hasViews) CreatorCollector(MapperConfig<?> config, JavaType beanType) -
Uses of JavaType in tools.jackson.databind.deser.impl
Fields in tools.jackson.databind.deser.impl declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeObjectIdReader._idTypeprotected final JavaTypeNullsFailProvider._typeprotected final JavaTypeUnsupportedTypeDeserializer._typeMethods in tools.jackson.databind.deser.impl that return JavaTypeMethods in tools.jackson.databind.deser.impl with parameters of type JavaTypeModifier and TypeMethodDescriptionstatic ExternalTypeHandler.Builderstatic ObjectIdReaderObjectIdReader.construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, ValueDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver) Factory method called byBeanSerializerBasewith the initial information based on standard settings for the type for which serializer is being built.static NullsFailProviderNullsFailProvider.constructForProperty(BeanProperty prop, JavaType type) static NullsFailProviderNullsFailProvider.constructForRootValue(JavaType t) Constructors in tools.jackson.databind.deser.impl with parameters of type JavaTypeModifierConstructorDescriptionprotectedprotectedExternalTypeHandler(JavaType beanType, tools.jackson.databind.deser.impl.ExternalTypeHandler.ExtTypedProperty[] properties, Map<String, Object> nameToPropertyIndex, String[] typeIds, TokenBuffer[] tokens) MethodProperty(BeanPropertyDefinition propDef, JavaType type, TypeDeserializer typeDeser, Annotations contextAnnotations, AnnotatedMember annotated) protectedNullsFailProvider(PropertyName name, JavaType type) protectedObjectIdReader(JavaType t, PropertyName propName, ObjectIdGenerator<?> gen, ValueDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver) SetterlessProperty(BeanPropertyDefinition propDef, JavaType type, TypeDeserializer typeDeser, Annotations contextAnnotations, AnnotatedMethod method) ValueInjector(PropertyName propName, JavaType type, AnnotatedMember mutator, Object valueId, Boolean optional, Boolean useInput) -
Uses of JavaType in tools.jackson.databind.deser.jdk
Fields in tools.jackson.databind.deser.jdk declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeEnumSetDeserializer._enumTypeprotected JavaTypeUntypedObjectDeserializer._listTypeIfListhas been mapped to non-default implementation, we'll store type hereprotected JavaTypeUntypedObjectDeserializer._mapTypeIfMaphas been mapped to non-default implementation, we'll store type hereMethods in tools.jackson.databind.deser.jdk that return JavaTypeMethods in tools.jackson.databind.deser.jdk with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected ValueDeserializer<Object>UntypedObjectDeserializer._findCustomDeser(DeserializationContext ctxt, JavaType type) protected final booleanMapDeserializer._isStdKeyDeser(JavaType mapType, KeyDeserializer keyDeser) Helper method used to check whether we can just use the default key deserialization, where JSON String becomes Java String.static KeyDeserializerJDKKeyDeserializers.constructDelegatingKeyDeserializer(DeserializationConfig config, JavaType type, ValueDeserializer<?> deser) static ValueDeserializer<?>JavaUtilCollectionsDeserializers.findForCollection(DeserializationContext ctxt, JavaType type) static ValueDeserializer<?>JavaUtilCollectionsDeserializers.findForMap(DeserializationContext ctxt, JavaType type) JDKKeyDeserializers.findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef) static KeyDeserializerJDKKeyDeserializers.findStringBasedKeyDeserializer(DeserializationContext ctxt, JavaType type) Constructors in tools.jackson.databind.deser.jdk with parameters of type JavaTypeModifierConstructorDescriptionArrayBlockingQueueDeserializer(JavaType containerType, ValueDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator) protectedArrayBlockingQueueDeserializer(JavaType containerType, ValueDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator, ValueDeserializer<Object> delegateDeser, NullValueProvider nuller, Boolean unwrapSingle) Constructor used when creating contextualized instances.AtomicReferenceDeserializer(JavaType fullType, ValueInstantiator inst, TypeDeserializer typeDeser, ValueDeserializer<?> deser) CollectionDeserializer(JavaType collectionType, ValueDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator) Constructor for context-free instances, where we do not yet know which property is using this deserializer.protectedCollectionDeserializer(JavaType collectionType, ValueDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator, ValueDeserializer<Object> delegateDeser, NullValueProvider nuller, Boolean unwrapSingle) Constructor used when creating contextualized instances.EnumMapDeserializer(JavaType mapType, ValueInstantiator valueInst, KeyDeserializer keyDeser, ValueDeserializer<?> valueDeser, TypeDeserializer vtd, NullValueProvider nuller) EnumSetDeserializer(JavaType enumType, ValueDeserializer<?> deser) MapDeserializer(JavaType mapType, ValueInstantiator valueInstantiator, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser) MapEntryDeserializer(JavaType type, KeyDeserializer keyDeser, ValueDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser) ObjectArrayDeserializer(JavaType arrayType0, ValueDeserializer<Object> elemDeser, TypeDeserializer elemTypeDeser) protectedStringCollectionDeserializer(JavaType collectionType, ValueInstantiator valueInstantiator, ValueDeserializer<?> delegateDeser, ValueDeserializer<?> valueDeser, NullValueProvider nuller, Boolean unwrapSingle) StringCollectionDeserializer(JavaType collectionType, ValueDeserializer<?> valueDeser, ValueInstantiator valueInstantiator) UntypedObjectDeserializer(JavaType listType, JavaType mapType) -
Uses of JavaType in tools.jackson.databind.deser.std
Fields in tools.jackson.databind.deser.std declared as JavaTypeModifier and TypeFieldDescriptionprotected JavaTypeStdValueInstantiator._arrayDelegateTypeprotected final JavaTypeContainerDeserializerBase._containerTypeprotected final JavaTypeStdConvertingDeserializer._delegateTypeFully resolved delegate type, with generic information if any available.protected JavaTypeStdValueInstantiator._delegateTypeprotected final JavaTypeReferenceTypeDeserializer._fullTypeFull type of property (or root value) for which this deserializer has been constructed and contextualized.protected final JavaTypeStdDeserializer._valueTypeMethods in tools.jackson.databind.deser.std that return JavaTypeModifier and TypeMethodDescriptionStdValueInstantiator.getArrayDelegateType(DeserializationConfig config) ContainerDeserializerBase.getContentType()Accessor for declared type of contained value elements; either exact type, or one of its supertypes.StdValueInstantiator.getDelegateType(DeserializationConfig config) ContainerDeserializerBase.getValueType()ReferenceTypeDeserializer.getValueType()StdDeserializer.getValueType()Exact structured type this deserializer handles, if known.StdDeserializer.getValueType(DeserializationContext ctxt) Convenience method for getting handled type asJavaType, regardless of whether deserializer has one already resolved (and accessible viaStdDeserializer.getValueType()) or not: equivalent to:Methods in tools.jackson.databind.deser.std with parameters of type JavaTypeModifier and TypeMethodDescriptionvoidStdValueInstantiator.configureFromArraySettings(AnnotatedWithParams arrayDelegateCreator, JavaType arrayDelegateType, SettableBeanProperty[] arrayDelegateArgs) voidStdValueInstantiator.configureFromObjectSettings(AnnotatedWithParams defaultCreator, AnnotatedWithParams delegateCreator, JavaType delegateType, SettableBeanProperty[] delegateArgs, AnnotatedWithParams withArgsCreator, SettableBeanProperty[] constructorArgs) Method for setting properties related to instantiating values from JSON Object.protected ValueDeserializer<Object>StdDeserializer.findDeserializer(DeserializationContext ctxt, JavaType type, BeanProperty property) Helper method used to locate deserializers for properties the type this deserializer handles contains (usually for properties of bean types)protected StdConvertingDeserializer<T>StdConvertingDeserializer.withDelegate(Converter<Object, T> converter, JavaType delegateType, ValueDeserializer<?> delegateDeserializer) Method used for creating resolved contextual instances.Constructors in tools.jackson.databind.deser.std with parameters of type JavaTypeModifierConstructorDescriptionprotectedContainerDeserializerBase(JavaType selfType) protectedContainerDeserializerBase(JavaType selfType, NullValueProvider nuller, Boolean unwrapSingle) protectedReferenceTypeDeserializer(JavaType fullType, ValueInstantiator vi, TypeDeserializer typeDeser, ValueDeserializer<?> deser) StdConvertingDeserializer(Converter<Object, T> converter, JavaType delegateType, ValueDeserializer<?> delegateDeserializer) protectedStdDeserializer(JavaType valueType) protectedStdNodeBasedDeserializer(JavaType targetType) protectedStdScalarDeserializer(JavaType valueType) StdValueInstantiator(DeserializationConfig config, JavaType valueType) -
Uses of JavaType in tools.jackson.databind.exc
Fields in tools.jackson.databind.exc declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeInvalidTypeIdException._baseTypeBasetype for which subtype was to be resolvedprotected final JavaTypeInvalidDefinitionException._typeprotected final JavaTypeValueInstantiationException._typeMethods in tools.jackson.databind.exc that return JavaTypeModifier and TypeMethodDescriptionInvalidTypeIdException.getBaseType()InvalidDefinitionException.getType()Accessor for type fully resolved type that had the problem; this should always known and available, nevernullValueInstantiationException.getType()Accessor for type fully resolved type that had the problem; this should always known and available, nevernullMethods in tools.jackson.databind.exc with parameters of type JavaTypeModifier and TypeMethodDescriptionstatic InvalidDefinitionExceptionInvalidDefinitionException.from(JsonGenerator g, String msg, JavaType type) static InvalidDefinitionExceptionInvalidDefinitionException.from(JsonParser p, String msg, JavaType type) static InvalidNullExceptionInvalidNullException.from(DeserializationContext ctxt, PropertyName name, JavaType type) static InvalidTypeIdExceptionInvalidTypeIdException.from(JsonParser p, String msg, JavaType baseType, String typeId) static MismatchedInputExceptionMismatchedInputException.from(JsonParser p, JavaType targetType, String msg) static ValueInstantiationExceptionValueInstantiationException.from(JsonParser p, String msg, JavaType type) static ValueInstantiationExceptionValueInstantiationException.from(JsonParser p, String msg, JavaType type, Throwable cause) MismatchedInputException.setTargetType(JavaType t) Constructors in tools.jackson.databind.exc with parameters of type JavaTypeModifierConstructorDescriptionprotectedInvalidDefinitionException(JsonGenerator g, String msg, JavaType type) protectedInvalidDefinitionException(JsonParser p, String msg, JavaType type) InvalidTypeIdException(JsonParser p, String msg, JavaType baseType, String typeId) protectedMismatchedInputException(JsonParser p, String msg, JavaType targetType) protectedValueInstantiationException(JsonParser p, String msg, JavaType type) protectedValueInstantiationException(JsonParser p, String msg, JavaType type, Throwable cause) -
Uses of JavaType in tools.jackson.databind.ext
Methods in tools.jackson.databind.ext with parameters of type JavaTypeModifier and TypeMethodDescriptionvoidDOMSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidQNameSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidXMLGregorianCalendarSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) static ValueDeserializer<?>CoreXMLDeserializers.findBeanDeserializer(DeserializationConfig config, JavaType type) OptionalHandlerFactory.findDeserializer(DeserializationConfig config, JavaType type) OptionalHandlerFactory.findSerializer(SerializationConfig config, JavaType type) -
Uses of JavaType in tools.jackson.databind.ext.javatime.ser
Fields in tools.jackson.databind.ext.javatime.ser declared as JavaTypeModifier and TypeFieldDescriptionprotected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.protected JavaTypeJSR310FormattedSerializerBase._integerListTypeLazily constructedJavaTyperepresenting typeList<Integer>.Methods in tools.jackson.databind.ext.javatime.ser with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected voidDurationSerializer._acceptTimestampVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) protected voidInstantSerializerBase._acceptTimestampVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) protected voidYearMonthSerializer._acceptTimestampVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) protected voidYearSerializer._acceptTimestampVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidLocalDateSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidLocalTimeSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) -
Uses of JavaType in tools.jackson.databind.ext.jdk8
Methods in tools.jackson.databind.ext.jdk8 with parameters of type JavaTypeModifier and TypeMethodDescriptionvoidOptionalDoubleSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidOptionalIntSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidOptionalLongSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) Constructors in tools.jackson.databind.ext.jdk8 with parameters of type JavaTypeModifierConstructorDescriptionJdk8OptionalDeserializer(JavaType fullType, ValueInstantiator inst, TypeDeserializer typeDeser, ValueDeserializer<?> deser) Jdk8StreamSerializer(JavaType streamType, JavaType elemType) ConstructorJdk8StreamSerializer(JavaType streamType, JavaType elemType, ValueSerializer<Object> elemSerializer) Constructor with custom serializer -
Uses of JavaType in tools.jackson.databind.ext.sql
Methods in tools.jackson.databind.ext.sql with parameters of type JavaTypeModifier and TypeMethodDescriptionvoidJavaSqlBlobSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJavaSqlTimeSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) JavaSqlTypeHandlerFactory.findDeserializer(DeserializationConfig config, JavaType type) JavaSqlTypeHandlerFactory.findSerializer(SerializationConfig config, JavaType type) -
Uses of JavaType in tools.jackson.databind.introspect
Fields in tools.jackson.databind.introspect declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeAnnotatedClass._typeResolved Java type for which information is collected: also works as context for resolving possible generic type of accessors declared in this type.protected final JavaTypeAnnotatedParameter._typeJDK type of the parameter, possibly contains generic type informationprotected final JavaTypePOJOPropertiesCollector._typeType of POJO for which properties are being collected.protected final JavaTypeVirtualAnnotatedMember._typeFields in tools.jackson.databind.introspect with type parameters of type JavaTypeModifier and TypeFieldDescriptionprotected HashMap<JavaType,BasicBeanDescription> BasicClassIntrospector._resolvedDeserBeanDescsReuse full bean descriptions for serialization during a single operationprotected HashMap<JavaType,AnnotatedClass> BasicClassIntrospector._resolvedFullAnnotationsReuse fully-resolved annotations during a single operationprotected HashMap<JavaType,BasicBeanDescription> BasicClassIntrospector._resolvedSerBeanDescsReuse full bean descriptions for serialization during a single operationAnnotatedClass._superTypesOrdered set of super classes and interfaces of the class itself: included in order of precedenceMethods in tools.jackson.databind.introspect that return JavaTypeModifier and TypeMethodDescriptionAnnotatedConstructor.getParameterType(int index) AnnotatedMethod.getParameterType(int index) abstract JavaTypeAnnotatedWithParams.getParameterType(int index) abstract JavaTypeBeanPropertyDefinition.getPrimaryType()POJOPropertyBuilder.getPrimaryType()Type determined from the primary member for the property being built, considering precedence according to whether we are processing serialization or deserialization.abstract JavaTypeAnnotated.getType()Full generic type of the annotated element; definition of what exactly this means depends on sub-class.AnnotatedClass.getType()AnnotatedConstructor.getType()AnnotatedField.getType()AnnotatedMethod.getType()For methods, this returns declared return type, which is only useful with getters (setters do not return anything; hence `Void` would be returned here)AnnotatedParameter.getType()POJOPropertiesCollector.getType()VirtualAnnotatedMember.getType()AnnotationIntrospectorPair.refineDeserializationType(MapperConfig<?> config, Annotated a, JavaType baseType) JacksonAnnotationIntrospector.refineDeserializationType(MapperConfig<?> config, Annotated a, JavaType baseType) AnnotationIntrospectorPair.refineSerializationType(MapperConfig<?> config, Annotated a, JavaType baseType) JacksonAnnotationIntrospector.refineSerializationType(MapperConfig<?> config, Annotated a, JavaType baseType) AnnotatedClass.resolveType(Type type) TypeResolutionContext.Basic.resolveType(Type type) TypeResolutionContext.Empty.resolveType(Type type) TypeResolutionContext.resolveType(Type t) Methods in tools.jackson.databind.introspect with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected BeanPropertyWriterJacksonAnnotationIntrospector._constructVirtualProperty(JsonAppend.Attr attr, MapperConfig<?> config, AnnotatedClass ac, JavaType type) protected BasicBeanDescriptionBasicClassIntrospector._findStdJdkCollectionDesc(JavaType type) protected AnnotatedClassBasicClassIntrospector._findStdTypeDef(JavaType type) Method called to see if type is one of core JDK types that we have cached for efficiency.protected BasicBeanDescriptionBasicClassIntrospector._findStdTypeDesc(JavaType type) protected AnnotatedClassBasicClassIntrospector._resolveAnnotatedClass(JavaType type) protected AnnotatedClassBasicClassIntrospector._resolveAnnotatedWithoutSuperTypes(JavaType type) static List<AnnotatedField>AnnotatedFieldCollector.collectFields(MapperConfig<?> config, TypeResolutionContext tc, MixInResolver mixins, JavaType type, Class<?> primaryMixIn, boolean collectAnnotations) static AnnotatedMethodMapAnnotatedMethodCollector.collectMethods(MapperConfig<?> config, TypeResolutionContext tc, MixInResolver mixins, JavaType type, List<JavaType> superTypes, Class<?> primaryMixIn, boolean collectAnnotations) protected POJOPropertiesCollectorBasicClassIntrospector.collectProperties(JavaType type, AnnotatedClass classDef, boolean forSerialization, String mutatorPrefix) protected POJOPropertiesCollectorBasicClassIntrospector.collectPropertiesWithBuilder(JavaType type, AnnotatedClass builderClassDef, BeanDescription valueTypeDesc, boolean forSerialization) protected POJOPropertiesCollectorBasicClassIntrospector.constructPropertyCollector(JavaType type, AnnotatedClass classDef, boolean forSerialization, AccessorNamingStrategy accNaming) Overridable method called for creatingPOJOPropertiesCollectorinstance to use; override is needed if a custom sub-class is to be used.static BasicBeanDescriptionBasicBeanDescription.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.introspectClassAnnotations(JavaType type) abstract AnnotatedClassClassIntrospector.introspectClassAnnotations(JavaType type) Factory method that introspects aAnnotatedClassthat only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.BasicClassIntrospector.introspectDirectClassAnnotations(JavaType type) abstract AnnotatedClassClassIntrospector.introspectDirectClassAnnotations(JavaType type) Factory method that introspects aAnnotatedClassthat only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.BasicClassIntrospector.introspectForCreation(JavaType type, AnnotatedClass classDef) abstract BeanDescriptionClassIntrospector.introspectForCreation(JavaType type, AnnotatedClass classDef) Factory method that introspects aBeanDescriptionthat has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methodsBasicClassIntrospector.introspectForDeserialization(JavaType type, AnnotatedClass classDef) abstract BeanDescriptionClassIntrospector.introspectForDeserialization(JavaType type, AnnotatedClass classDef) Factory method that introspects aBeanDescriptionthat has all information needed for deserialization purposes.BasicClassIntrospector.introspectForDeserializationWithBuilder(JavaType type, BeanDescription valueTypeDesc) abstract BeanDescriptionClassIntrospector.introspectForDeserializationWithBuilder(JavaType builderType, BeanDescription valueTypeDesc) Factory method that introspects aBeanDescriptionthat has all information needed for constructing deserializers that use intermediate Builder objects.BasicClassIntrospector.introspectForSerialization(JavaType type, AnnotatedClass classDef) abstract BeanDescriptionClassIntrospector.introspectForSerialization(JavaType type, AnnotatedClass classDef) Factory method that introspects aBeanDescriptionthat has all information needed for serialization purposes.AnnotationIntrospectorPair.refineDeserializationType(MapperConfig<?> config, Annotated a, JavaType baseType) JacksonAnnotationIntrospector.refineDeserializationType(MapperConfig<?> config, Annotated a, JavaType baseType) AnnotationIntrospectorPair.refineSerializationType(MapperConfig<?> config, Annotated a, JavaType baseType) JacksonAnnotationIntrospector.refineSerializationType(MapperConfig<?> config, Annotated a, JavaType baseType) static AnnotatedClassAnnotatedClassResolver.resolve(MapperConfig<?> config, JavaType forType, MixInResolver r) static AnnotatedClassAnnotatedClassResolver.resolveWithoutSuperTypes(MapperConfig<?> config, JavaType forType, MixInResolver r) Method parameters in tools.jackson.databind.introspect with type arguments of type JavaTypeModifier and TypeMethodDescriptionstatic AnnotatedMethodMapAnnotatedMethodCollector.collectMethods(MapperConfig<?> config, TypeResolutionContext tc, MixInResolver mixins, JavaType type, List<JavaType> superTypes, Class<?> primaryMixIn, boolean collectAnnotations) Constructors in tools.jackson.databind.introspect with parameters of type JavaTypeModifierConstructorDescriptionAnnotatedParameter(AnnotatedWithParams owner, JavaType type, TypeResolutionContext typeContext, AnnotationMap annotations, int index) protectedBasicBeanDescription(MapperConfig<?> config, JavaType type, AnnotatedClass classDef) Alternate constructor used in cases where property information is not needed, only class info.protectedBasicBeanDescription(POJOPropertiesCollector coll, JavaType type, AnnotatedClass classDef) protectedPOJOPropertiesCollector(MapperConfig<?> config, boolean forSerialization, JavaType type, AnnotatedClass classDef, AccessorNamingStrategy accessorNaming) VirtualAnnotatedMember(TypeResolutionContext typeContext, Class<?> declaringClass, String name, JavaType type) -
Uses of JavaType in tools.jackson.databind.jsonFormatVisitors
Methods in tools.jackson.databind.jsonFormatVisitors with parameters of type JavaTypeModifier and TypeMethodDescriptionvoidJsonFormatVisitable.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) Get the representation of the schema to which this serializer will conform.JsonFormatVisitorWrapper.Base.expectAnyFormat(JavaType type) JsonFormatVisitorWrapper.expectAnyFormat(JavaType type) JsonFormatVisitorWrapper.Base.expectArrayFormat(JavaType type) JsonFormatVisitorWrapper.expectArrayFormat(JavaType type) JsonFormatVisitorWrapper.Base.expectBooleanFormat(JavaType type) JsonFormatVisitorWrapper.expectBooleanFormat(JavaType type) JsonFormatVisitorWrapper.Base.expectIntegerFormat(JavaType type) JsonFormatVisitorWrapper.expectIntegerFormat(JavaType type) JsonFormatVisitorWrapper.Base.expectMapFormat(JavaType type) JsonFormatVisitorWrapper.expectMapFormat(JavaType type) Method called when type is of JavaMaptype, and will be serialized as a JSON Object.JsonFormatVisitorWrapper.Base.expectNullFormat(JavaType type) JsonFormatVisitorWrapper.expectNullFormat(JavaType type) JsonFormatVisitorWrapper.Base.expectNumberFormat(JavaType type) JsonFormatVisitorWrapper.expectNumberFormat(JavaType type) JsonFormatVisitorWrapper.Base.expectObjectFormat(JavaType type) JsonFormatVisitorWrapper.expectObjectFormat(JavaType type) JsonFormatVisitorWrapper.Base.expectStringFormat(JavaType type) JsonFormatVisitorWrapper.expectStringFormat(JavaType type) voidJsonArrayFormatVisitor.Base.itemsFormat(JsonFormatVisitable handler, JavaType elementType) voidJsonArrayFormatVisitor.itemsFormat(JsonFormatVisitable handler, JavaType elementType) Visit method called for structured types, as well as possibly for leaf types (especially if handled by custom serializers).voidJsonMapFormatVisitor.Base.keyFormat(JsonFormatVisitable handler, JavaType keyType) voidJsonMapFormatVisitor.keyFormat(JsonFormatVisitable handler, JavaType keyType) Visit method called to indicate type of keys of the Map type being visitedvoidJsonObjectFormatVisitor.Base.optionalProperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) voidJsonObjectFormatVisitor.optionalProperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) voidJsonObjectFormatVisitor.Base.property(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) voidJsonObjectFormatVisitor.property(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) Callback method called when a non-POJO property (typically something like an Enum entry ofEnumMaptype) is being traversed.voidJsonMapFormatVisitor.Base.valueFormat(JsonFormatVisitable handler, JavaType valueType) voidJsonMapFormatVisitor.valueFormat(JsonFormatVisitable handler, JavaType valueType) Visit method called afterJsonMapFormatVisitor.keyFormat(tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, tools.jackson.databind.JavaType)to allow visiting of the value type -
Uses of JavaType in tools.jackson.databind.jsontype
Methods in tools.jackson.databind.jsontype that return JavaTypeModifier and TypeMethodDescriptionTypeIdResolver.typeFromId(DatabindContext ctxt, String id) Method called to resolve type from given type identifier.Methods in tools.jackson.databind.jsontype with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected TypeResolverBuilder<?>TypeResolverProvider._constructStdTypeResolverBuilder(MapperConfig<?> config, JsonTypeInfo.Value typeInfo, JavaType baseType) protected TypeResolverBuilder<?>TypeResolverProvider._findTypeResolver(MapperConfig<?> config, Annotated ann, JavaType baseType) TypeResolverBuilder.buildTypeDeserializer(DeserializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) Method for building type deserializer based on current configuration of this builder.TypeResolverBuilder.buildTypeSerializer(SerializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) Method for building type serializer based on current configuration of this builder.abstract Collection<NamedType>SubtypeResolver.collectAndResolveSubtypesByClass(MapperConfig<?> config, AnnotatedMember property, JavaType baseType) Method for finding out all reachable subtypes for a property specified by given element (method or field), such that access is by type, typically needed for serialization (converting from type to type name).abstract Collection<NamedType>SubtypeResolver.collectAndResolveSubtypesByTypeId(MapperConfig<?> config, AnnotatedMember property, JavaType baseType) Method for finding out all reachable subtypes for a property specified by given element (method or field), such that access is by type id, typically needed for deserialization (converting from type id to type).static ObjectTypeDeserializer.deserializeIfNatural(JsonParser p, DeserializationContext ctxt, JavaType baseType) Helper method used to check if given parser might be pointing to a "natural" value, and one that would be acceptable as the result value (compatible with declared base type)TypeResolverProvider.findPropertyContentTypeDeserializer(DeserializationContext ctxt, AnnotatedMember accessor, JavaType containerType) TypeResolverProvider.findPropertyContentTypeSerializer(SerializationContext ctxt, AnnotatedMember accessor, JavaType containerType) TypeResolverProvider.findPropertyTypeDeserializer(DeserializationContext ctxt, AnnotatedMember accessor, JavaType baseType) TypeResolverProvider.findPropertyTypeSerializer(SerializationContext ctxt, AnnotatedMember accessor, JavaType baseType) TypeResolverProvider.findTypeDeserializer(DeserializationContext ctxt, JavaType baseType, AnnotatedClass classInfo) TypeResolverProvider.findTypeSerializer(SerializationContext ctxt, JavaType baseType, AnnotatedClass classInfo) Method for checking if given class has annotations that indicate that specific type resolver is to be used for handling instances of given type.voidMethod that will be called once before any type resolution calls; used to initialize instance with configuration.protected booleanDefaultBaseTypeLimitingValidator.isSafeSubType(DatabindContext ctxt, JavaType baseType, JavaType subType) Helper called to determine whether given actual subtype is considered safe to process: this will only be called if subtype was considered acceptable earlier.protected booleanDefaultBaseTypeLimitingValidator.isUnsafeBaseType(DatabindContext ctxt, JavaType baseType) Helper method called to determine if the given base type is known to be problematic regarding possible "gadget types".BasicPolymorphicTypeValidator.validateBaseType(DatabindContext ctxt, JavaType baseType) DefaultBaseTypeLimitingValidator.validateBaseType(DatabindContext ctxt, JavaType baseType) PolymorphicTypeValidator.Base.validateBaseType(DatabindContext ctxt, JavaType baseType) abstract PolymorphicTypeValidator.ValidityPolymorphicTypeValidator.validateBaseType(DatabindContext ctxt, JavaType baseType) Method called when a property with polymorphic value is encountered, and aTypeResolverBuilderis needed.BasicPolymorphicTypeValidator.validateSubClassName(DatabindContext ctxt, JavaType baseType, String subClassName) DefaultBaseTypeLimitingValidator.validateSubClassName(DatabindContext ctxt, JavaType baseType, String subClassName) PolymorphicTypeValidator.Base.validateSubClassName(DatabindContext ctxt, JavaType baseType, String subClassName) abstract PolymorphicTypeValidator.ValidityPolymorphicTypeValidator.validateSubClassName(DatabindContext ctxt, JavaType baseType, String subClassName) BasicPolymorphicTypeValidator.validateSubType(DatabindContext ctxt, JavaType baseType, JavaType subType) DefaultBaseTypeLimitingValidator.validateSubType(DatabindContext ctxt, JavaType baseType, JavaType subType) PolymorphicTypeValidator.Base.validateSubType(DatabindContext ctxt, JavaType baseType, JavaType subType) abstract PolymorphicTypeValidator.ValidityPolymorphicTypeValidator.validateSubType(DatabindContext ctxt, JavaType baseType, JavaType subType) Method called after class name has been resolved to actual type, in cases where previous call toPolymorphicTypeValidator.validateSubClassName(tools.jackson.databind.DatabindContext, tools.jackson.databind.JavaType, java.lang.String)returnedPolymorphicTypeValidator.Validity.INDETERMINATE. -
Uses of JavaType in tools.jackson.databind.jsontype.impl
Fields in tools.jackson.databind.jsontype.impl declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeTypeDeserializerBase._baseTypeprotected final JavaTypeTypeIdResolverBase._baseTypeCommon base type for all polymorphic instances handled.protected final JavaTypeTypeDeserializerBase._defaultImplType to use as the default implementation, if type id is missing or cannot be resolved.Fields in tools.jackson.databind.jsontype.impl with type parameters of type JavaTypeModifier and TypeFieldDescriptionSimpleNameIdResolver._idToTypeMappings from type id to JavaType, used for deserialization.TypeNameIdResolver._idToTypeMappings from type id to JavaType, used for deserialization.Methods in tools.jackson.databind.jsontype.impl that return JavaTypeModifier and TypeMethodDescriptionprotected JavaTypeTypeDeserializerBase._handleMissingTypeId(DeserializationContext ctxt, String extraDesc) protected JavaTypeTypeDeserializerBase._handleUnknownTypeId(DeserializationContext ctxt, String typeId) Helper method called when given type id cannot be resolved into concrete deserializer either directly (using givenTypeIdResolver), or using default type.protected JavaTypeClassNameIdResolver._typeFromId(DatabindContext ctxt, String id) protected JavaTypeMinimalClassNameIdResolver._typeFromId(DatabindContext ctxt, String id) protected JavaTypeSimpleNameIdResolver._typeFromId(String id) protected JavaTypeTypeNameIdResolver._typeFromId(String id) protected JavaTypeDefaultTypeResolverBuilder._unwrapArrayType(JavaType t) protected JavaTypeDefaultTypeResolverBuilder._unwrapReferenceType(JavaType t) TypeDeserializerBase.baseType()protected JavaTypeStdTypeResolverBuilder.defineDefaultImpl(DatabindContext ctxt, JavaType baseType) ClassNameIdResolver.typeFromId(DatabindContext ctxt, String id) SimpleNameIdResolver.typeFromId(DatabindContext ctxt, String id) TypeIdResolverBase.typeFromId(DatabindContext context, String id) TypeNameIdResolver.typeFromId(DatabindContext context, String id) Methods in tools.jackson.databind.jsontype.impl with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected booleanStdTypeResolverBuilder._hasTypeResolver(DatabindContext ctxt, JavaType baseType) Checks whether the given class has annotations indicating some type resolver is applied, for exampleJsonTypeInfo.protected booleanStdTypeResolverBuilder._strictTypeIdHandling(DatabindContext ctxt, JavaType baseType) Determines whether strict type ID handling should be used for this type or not.protected JavaTypeDefaultTypeResolverBuilder._unwrapArrayType(JavaType t) protected JavaTypeDefaultTypeResolverBuilder._unwrapReferenceType(JavaType t) protected booleanStdTypeResolverBuilder.allowPrimitiveTypes(DatabindContext ctxt, JavaType baseType) Overridable helper method that is called to determine whether type serializers and type deserializers may be created even if base type is Javaprimitivetype.DefaultTypeResolverBuilder.buildTypeDeserializer(DeserializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) StdTypeResolverBuilder.buildTypeDeserializer(DeserializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) DefaultTypeResolverBuilder.buildTypeSerializer(SerializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) StdTypeResolverBuilder.buildTypeSerializer(SerializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) StdSubtypeResolver.collectAndResolveSubtypesByClass(MapperConfig<?> config, AnnotatedMember property, JavaType baseType) StdSubtypeResolver.collectAndResolveSubtypesByTypeId(MapperConfig<?> config, AnnotatedMember property, JavaType baseType) static ClassNameIdResolverClassNameIdResolver.construct(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv) static MinimalClassNameIdResolverMinimalClassNameIdResolver.construct(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv) static SimpleNameIdResolverSimpleNameIdResolver.construct(MapperConfig<?> config, JavaType baseType, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) static TypeNameIdResolverTypeNameIdResolver.construct(MapperConfig<?> config, JavaType baseType, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) protected JavaTypeStdTypeResolverBuilder.defineDefaultImpl(DatabindContext ctxt, JavaType baseType) protected TypeIdResolverStdTypeResolverBuilder.idResolver(DatabindContext ctxt, JavaType baseType, PolymorphicTypeValidator subtypeValidator, 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.voidprotected PolymorphicTypeValidatorStdTypeResolverBuilder.reportInvalidBaseType(DatabindContext ctxt, JavaType baseType, PolymorphicTypeValidator ptv) booleanDefaultTypeResolverBuilder.useForType(JavaType t) Method called to check if the default type handler should be used for given type.voidSubTypeValidator.validateSubType(DeserializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) protected PolymorphicTypeValidatorStdTypeResolverBuilder.verifyBaseTypeValidity(DatabindContext ctxt, JavaType baseType) Helper method called to check that base type is valid regarding possible constraints on basetype/subtype combinations allowed for polymorphic type handling.Constructors in tools.jackson.databind.jsontype.impl with parameters of type JavaTypeModifierConstructorDescriptionAsArrayTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl) AsDeductionTypeDeserializer(DeserializationContext ctxt, JavaType bt, TypeIdResolver idRes, JavaType defaultImpl, Collection<NamedType> subtypes) AsExternalTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl) AsPropertyTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl, JsonTypeInfo.As inclusion, boolean strictTypeIdHandling) AsWrapperTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl) ClassNameIdResolver(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv) protectedMinimalClassNameIdResolver(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv) protectedSimpleNameIdResolver(JavaType baseType, ConcurrentHashMap<String, String> typeToId, HashMap<String, JavaType> idToType, boolean caseInsensitive) protectedTypeDeserializerBase(JavaType baseType, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl) protectedTypeIdResolverBase(JavaType baseType) protectedTypeNameIdResolver(JavaType baseType, ConcurrentHashMap<String, String> typeToId, HashMap<String, JavaType> idToType, boolean caseInsensitive) Constructor parameters in tools.jackson.databind.jsontype.impl with type arguments of type JavaTypeModifierConstructorDescriptionprotectedSimpleNameIdResolver(JavaType baseType, ConcurrentHashMap<String, String> typeToId, HashMap<String, JavaType> idToType, boolean caseInsensitive) protectedTypeNameIdResolver(JavaType baseType, ConcurrentHashMap<String, String> typeToId, HashMap<String, JavaType> idToType, boolean caseInsensitive) -
Uses of JavaType in tools.jackson.databind.module
Methods in tools.jackson.databind.module that return JavaTypeModifier and TypeMethodDescriptionSimpleAbstractTypeResolver.findTypeMapping(DeserializationConfig config, JavaType type) SimpleAbstractTypeResolver.resolveAbstractType(DeserializationConfig config, BeanDescription.Supplier beanDescRef) Methods in tools.jackson.databind.module with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected ValueSerializer<?>SimpleSerializers._findSerializer(SerializationConfig config, JavaType type) SimpleDeserializers.findBeanDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef) SimpleDeserializers.findEnumDeserializer(JavaType enumType, DeserializationConfig config, BeanDescription.Supplier beanDescRef) SimpleSerializers.findEnumSerializer(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) SimpleKeyDeserializers.findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription.Supplier beanDescRef) SimpleSerializers.findSerializer(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) SimpleDeserializers.findTreeNodeDeserializer(JavaType nodeType, DeserializationConfig config, BeanDescription.Supplier beanDescRef) SimpleSerializers.findTreeNodeSerializer(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) SimpleAbstractTypeResolver.findTypeMapping(DeserializationConfig config, JavaType type) -
Uses of JavaType in tools.jackson.databind.ser
Fields in tools.jackson.databind.ser declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeBeanPropertyWriter._cfgSerializationTypeType to use for locating serializer; normally same as return type of the accessor method, but may be overridden by annotations.protected final JavaTypeBeanPropertyWriter._declaredTypeType property is declared to have, either in class definition or associated annotations.protected JavaTypeBeanPropertyWriter._nonTrivialBaseTypeBase type of the property, if the declared type is "non-trivial"; meaning it is either a structured type (collection, map, array), or parameterized.Methods in tools.jackson.databind.ser that return JavaTypeModifier and TypeMethodDescriptionprotected JavaTypePropertyBuilder.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 tools.jackson.databind.ser with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected BeanPropertyWriterPropertyBuilder._constructPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, Object suppressableValue, Class<?>[] includeInViews) Overridable factory method for actual construction ofBeanPropertyWriter; often needed if subclassingPropertyBuilder.buildWriter(tools.jackson.databind.SerializationContext, tools.jackson.databind.introspect.BeanPropertyDefinition, tools.jackson.databind.JavaType, tools.jackson.databind.ValueSerializer<?>, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.introspect.AnnotatedMember, boolean)method.protected ValueSerializer<?>BeanSerializerFactory._createSerializer2(SerializationContext ctxt, BeanDescription.Supplier beanDescRef, JavaType type, JsonFormat.Value formatOverrides, boolean staticTyping) protected JsonInclude.ValueBasicSerializerFactory._findInclusionWithContent(SerializationContext ctxt, BeanDescription.Supplier beanDescRef, JavaType contentType, Class<?> configType) Helper method used for finding inclusion definitions for structured container types likeMaps and referential types (likeAtomicReference).protected ValueSerializer<?>BeanSerializerFactory._findUnsupportedTypeSerializer(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) protected booleanBeanSerializerFactory._isUnserializableJacksonType(SerializationContext ctxt, JavaType type) voidSerializationContextExt.acceptJsonFormatVisitor(JavaType javaType, JsonFormatVisitorWrapper visitor) The method to be called byObjectMapperandObjectWriterto expose the format of the given type to the given visitorvoidSerializerCache.addAndResolveNonTypedSerializer(Class<?> rawType, JavaType fullType, ValueSerializer<Object> ser, SerializationContext provider) Another alternative that will cover both access via raw type and matching fully resolved type, in one fell swoop.voidSerializerCache.addAndResolveNonTypedSerializer(JavaType type, ValueSerializer<Object> ser, SerializationContext provider) voidSerializerCache.addTypedSerializer(JavaType type, ValueSerializer<Object> ser) Method called if none of lookups succeeded, and caller had to construct a serializer.BasicSerializerFactory.buildCollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) protected ValueSerializer<?>BasicSerializerFactory.buildContainerSerializer(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping) protected ValueSerializer<?>BasicSerializerFactory.buildEnumSerializer(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value effectiveFormat) BasicSerializerFactory.buildEnumSetSerializer(JavaType enumType) BasicSerializerFactory.buildIndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) protected ValueSerializer<?>BasicSerializerFactory.buildIterableSerializer(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value effectiveFormat, boolean staticTyping, JavaType valueType) protected ValueSerializer<?>BasicSerializerFactory.buildIteratorSerializer(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDesc, JsonFormat.Value formatOverrides, boolean staticTyping, JavaType valueType) protected ValueSerializer<?>BasicSerializerFactory.buildMapEntrySerializer(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value effectiveFormat, boolean staticTyping, JavaType keyType, JavaType valueType) protected BeanPropertyWriterPropertyBuilder.buildWriter(SerializationContext ctxt, BeanPropertyDefinition propDef, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, TypeSerializer contentTypeSer, AnnotatedMember am, boolean defaultUseStaticTyping) protected ValueSerializer<Object>BeanSerializerFactory.constructBeanOrAddOnSerializer(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value format, boolean staticTyping) Method called to construct serializer based on checking which condition is matched: Nominal type isjava.lang.Object: if so, return special "no type known" serializer If a known "not-POJO" type (like JDKProxy), returnnullIf at least one logical property found, build actualBeanSerializerIf add-on type (likeIterable) found, create appropriate serializer If one of Jackson's "well-known" annotations found, create bogus "empty Object" Serializer or, if none matched, returnnull.static BeanSerializerBeanSerializer.createDummy(JavaType forType, BeanSerializerBuilder builder) Method for constructing dummy bean serializer; one that never outputs any propertiesBasicSerializerFactory.createKeySerializer(SerializationContext ctxt, JavaType keyType) abstract ValueSerializer<Object>SerializerFactory.createKeySerializer(SerializationContext ctxt, JavaType type) 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)BeanSerializerFactory.createSerializer(SerializationContext ctxt, JavaType origType, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) Main serializer constructor method.SerializerFactory.createSerializer(SerializationContext ctxt, JavaType baseType) Deprecated.abstract ValueSerializer<Object>SerializerFactory.createSerializer(SerializationContext ctxt, JavaType baseType, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverride) Method called to create (or, for immutable serializers, reuse) a serializer for given type.default ValueSerializer<?>Serializers.findEnumSerializer(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) Method called by serialization framework first time a serializer is needed for givenEnumtype.default ValueSerializer<?>Serializers.findExplicitPOJOSerializer(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) Method called in case that a given type or property is declared to use shapeJsonFormat.Shape.POJOand is expected to be serialized "as POJO", that is, as an (JSON) Object.BasicSerializerFactory.findPropertyContentTypeSerializer(SerializationContext ctxt, JavaType containerType, AnnotatedMember accessor) Method called to create a type information serializer for values of given container property if one is needed.protected JavaTypePropertyBuilder.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).default ValueSerializer<?>Serializers.findSerializer(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) Fallback ethod called by serialization framework first time a serializer is needed for given type, which is not of any more specific type (like enum, tree node, reference or container type) for which other methods are called).protected final ValueSerializer<?>BasicSerializerFactory.findSerializerByAddonType(SerializationContext ctxt, JavaType javaType, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping) Reflection-based serialized find method, which checks if given class implements one of recognized "add-on" interfaces.protected final ValueSerializer<?>BasicSerializerFactory.findSerializerByAnnotations(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) Method called to see if one of primary per-class annotations (or related, like implementing ofJacksonSerializable) determines the serializer to use.protected final ValueSerializer<?>BasicSerializerFactory.findSerializerByPrimaryType(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, 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).default ValueSerializer<?>Serializers.findTreeNodeSerializer(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) ValueSerializerModifier.modifyEnumSerializer(SerializationConfig config, JavaType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifyKeySerializer(SerializationConfig config, JavaType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) Method called byDeserializerFactoryafter it has constructed the default key serializer to use for serializingMapkeys of given type.voidSerializationContextExt.serializePolymorphic(JsonGenerator gen, Object value, JavaType rootType, ValueSerializer<Object> valueSer, TypeSerializer typeSer) Alternate serialization call used for polymorphic types, whenTypeSerializeris already known, but the actual serializer may or may not be.voidSerializationContextExt.serializeValue(JsonGenerator gen, Object value, JavaType rootType) The method to be called byObjectMapperandObjectWriterfor serializing given value (assumed to be of specified root type, instead of runtime type of value), using serializers that this provider has access to (via caching and/or creating new serializers as need be),voidSerializationContextExt.serializeValue(JsonGenerator gen, Object value, JavaType rootType, ValueSerializer<Object> ser) The method to be called byObjectWriterfor serializing given value (assumed to be of specified root type, instead of runtime type of value), when it may know specificValueSerializerto use.voidBeanPropertyWriter.setNonTrivialBaseType(JavaType t) Method called to define type to consider as "non-trivial" basetype, needed for dynamic serialization resolution for complex (usually container) typesstatic UnrolledBeanSerializerUnrolledBeanSerializer.tryConstruct(JavaType type, BeanSerializerBuilder builder, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties) Factory method that will construct optimized instance if all the constraints are obeyed; or, if not, return `null` to indicate that instance cannot be created.SerializerCache.typedValueSerializer(JavaType type) SerializerCache.untypedValueSerializer(JavaType type) abstract VirtualBeanPropertyWriterVirtualBeanPropertyWriter.withConfig(MapperConfig<?> config, AnnotatedClass declaringClass, BeanPropertyDefinition propDef, JavaType type) Contextualization method called on a newly constructed virtual bean property.Constructors in tools.jackson.databind.ser with parameters of type JavaTypeModifierConstructorDescriptionBeanPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, Object suppressableValue, Class<?>[] includeInViews) BeanSerializer(JavaType type, BeanSerializerBuilder builder, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties) UnrolledBeanSerializer(JavaType type, BeanSerializerBuilder builder, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties) protectedVirtualBeanPropertyWriter(BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType) Constructor used by most sub-types.protectedVirtualBeanPropertyWriter(BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, JavaType serType, JsonInclude.Value inclusion, Class<?>[] includeInViews) Pass-through constructor that may be used by sub-classes that want full control over implementation. -
Uses of JavaType in tools.jackson.databind.ser.bean
Fields in tools.jackson.databind.ser.bean declared as JavaTypeMethods in tools.jackson.databind.ser.bean with parameters of type JavaTypeModifier and TypeMethodDescriptionvoidBeanSerializerBase.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) Constructors in tools.jackson.databind.ser.bean with parameters of type JavaTypeModifierConstructorDescriptionprotectedBeanSerializerBase(JavaType type, BeanSerializerBuilder builder, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties) Constructor used byBeanSerializerBuilderto create an instance -
Uses of JavaType in tools.jackson.databind.ser.impl
Fields in tools.jackson.databind.ser.impl declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeUnsupportedTypeSerializer._typefinal JavaTypeObjectIdWriter.idTypeMethods in tools.jackson.databind.ser.impl with parameters of type JavaTypeModifier and TypeMethodDescriptionPropertySerializerMap.addSerializer(JavaType type, ValueSerializer<Object> serializer) static AttributePropertyWriterAttributePropertyWriter.construct(String attrName, BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType) static ObjectIdWriterObjectIdWriter.construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, boolean alwaysAsId) Factory method called byBeanSerializerBasewith the initial information based on standard settings for the type for which serializer is being built.PropertySerializerMap.findAndAddPrimarySerializer(JavaType type, SerializationContext provider, BeanProperty property) Method called if initial lookup fails, when looking for a primary serializer (one that is directly attached to a property).PropertySerializerMap.findAndAddRootValueSerializer(JavaType type, SerializationContext provider) PropertySerializerMap.findAndAddSecondarySerializer(JavaType type, SerializationContext provider, BeanProperty property) PropertySerializerMap.findAndAddSecondarySerializer(JavaType type, SerializationContext provider, BeanProperty property, UnaryOperator<ValueSerializer<Object>> serTransformer) ReadOnlyClassToSerializerMap.typedValueSerializer(JavaType type) ReadOnlyClassToSerializerMap.untypedValueSerializer(JavaType type) AttributePropertyWriter.withConfig(MapperConfig<?> config, AnnotatedClass declaringClass, BeanPropertyDefinition propDef, JavaType type) Since this method should typically not be called on this sub-type, default implementation simply throws anIllegalStateException.Constructors in tools.jackson.databind.ser.impl with parameters of type JavaTypeModifierConstructorDescriptionprotectedAttributePropertyWriter(String attrName, BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType) protectedAttributePropertyWriter(String attrName, BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType, JsonInclude.Value inclusion) protectedObjectIdWriter(JavaType t, SerializableString propName, ObjectIdGenerator<?> gen, ValueSerializer<?> ser, boolean alwaysAsId) UnsupportedTypeSerializer(JavaType t, String msg) -
Uses of JavaType in tools.jackson.databind.ser.jackson
Fields in tools.jackson.databind.ser.jackson declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeJsonValueSerializer._valueTypeValue for annotated accessor.Methods in tools.jackson.databind.ser.jackson with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected booleanJsonValueSerializer._acceptJsonFormatVisitorForEnum(JsonFormatVisitorWrapper visitor, JavaType typeHint, Class<?> enumType) Overridable helper method used for special case handling of schema information for Enums.voidJacksonSerializableSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJsonValueSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidRawSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidTokenBufferSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) static JsonValueSerializerJsonValueSerializer.construct(SerializationConfig config, JavaType nominalType, JavaType valueType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> ser, AnnotatedMember accessor) Constructors in tools.jackson.databind.ser.jackson with parameters of type JavaTypeModifierConstructorDescriptionprotectedJsonValueSerializer(JavaType nominalType, JavaType valueType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> ser, AnnotatedMember accessor, Set<String> ignoredProperties) -
Uses of JavaType in tools.jackson.databind.ser.jdk
Fields in tools.jackson.databind.ser.jdk declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeObjectArraySerializer._elementTypeDeclared type of element entriesprotected final JavaTypeMapEntrySerializer._entryTypeprotected final JavaTypeMapEntrySerializer._keyTypeprotected final JavaTypeMapSerializer._keyTypeDeclared type of keysprotected final JavaTypeMapEntrySerializer._valueTypeprotected final JavaTypeMapSerializer._valueTypeDeclared type of contained valuesprotected static final JavaTypeMapSerializer.UNSPECIFIED_TYPEMethods in tools.jackson.databind.ser.jdk that return JavaTypeModifier and TypeMethodDescriptionJDKArraySerializers.BooleanArraySerializer.getContentType()JDKArraySerializers.DoubleArraySerializer.getContentType()JDKArraySerializers.FloatArraySerializer.getContentType()JDKArraySerializers.IntArraySerializer.getContentType()JDKArraySerializers.LongArraySerializer.getContentType()JDKArraySerializers.ShortArraySerializer.getContentType()MapEntrySerializer.getContentType()MapSerializer.getContentType()ObjectArraySerializer.getContentType()StringArraySerializer.getContentType()MapProperty.getType()Methods in tools.jackson.databind.ser.jdk with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected voidDateTimeSerializerBase._acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint, boolean asNumber) voidBooleanSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidByteArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidByteBufferSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidDateTimeSerializerBase.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidEnumSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKArraySerializers.BinaryDoubleArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKArraySerializers.BinaryFloatArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKArraySerializers.BooleanArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKArraySerializers.CharArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKArraySerializers.DoubleArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKArraySerializers.FloatArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKArraySerializers.IntArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKArraySerializers.LongArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKArraySerializers.ShortArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKKeySerializers.Dynamic.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKMiscSerializers.AtomicBooleanSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKMiscSerializers.AtomicIntegerSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKMiscSerializers.AtomicLongSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKMiscSerializers.ByteArrayOutputStreamSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidJDKStringLikeSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidMapSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidNumberSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidNumberSerializers.Base.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidObjectArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidStaticListSerializerBase.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidStringArraySerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidStringSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidUUIDSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) static MapSerializerMapSerializer.construct(JavaType mapType, boolean staticValueType, TypeSerializer vts, ValueSerializer<Object> keySerializer, ValueSerializer<Object> valueSerializer, Object filterId, Set<String> ignoredEntries, Set<String> includedEntries) static MapEntryAsPOJOSerializerMapEntryAsPOJOSerializer.create(SerializationContext ctxt, JavaType type) Constructors in tools.jackson.databind.ser.jdk with parameters of type JavaTypeModifierConstructorDescriptionCollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) EnumSetSerializer(JavaType elemType) IndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) IterableSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts) IteratorSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts) protectedMapEntrySerializer(JavaType type, JavaType keyType, JavaType valueType, boolean staticTyping, TypeSerializer vts, BeanProperty property) protectedMapSerializer(Set<String> ignoredEntries, Set<String> includedEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, ValueSerializer<?> keySerializer, ValueSerializer<?> valueSerializer) ObjectArraySerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> elementSerializer) -
Uses of JavaType in tools.jackson.databind.ser.std
Fields in tools.jackson.databind.ser.std declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeStdDelegatingSerializer._delegateTypeFully resolved delegate type, with generic information if any available.protected final JavaTypeAsArraySerializerBase._elementTypeprotected final JavaTypeReferenceTypeSerializer._referredTypeValue typeMethods in tools.jackson.databind.ser.std that return JavaTypeModifier and TypeMethodDescriptionAsArraySerializerBase.getContentType()abstract JavaTypeStdContainerSerializer.getContentType()Accessor for finding declared (static) element type for type this serializer is used for.ReferenceTypeSerializer.getReferredType()Methods in tools.jackson.databind.ser.std with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected ValueSerializer<Object>StdContainerSerializer._findAndAddDynamic(SerializationContext ctxt, JavaType type) protected final ValueSerializer<Object>StdDynamicSerializer._findAndAddDynamic(SerializationContext ctxt, JavaType type) protected final ValueSerializer<Object>StdDynamicSerializer._findAndAddDynamic(SerializationContext ctxt, JavaType type, UnaryOperator<ValueSerializer<Object>> serTransformer) protected booleanReferenceTypeSerializer._useStatic(SerializationContext serializers, BeanProperty property, JavaType referredType) voidAsArraySerializerBase.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidNullSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidReferenceTypeSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidStdDelegatingSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidStdScalarSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidStdSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) Default implementation specifies no format.voidToEmptyObjectSerializer.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) voidToStringSerializerBase.acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) protected voidStdSerializer.acceptJsonFormatVisitorForBinary(JsonFormatVisitorWrapper visitor, JavaType typeHint) Helper method for handling Binary values: typically serialized as Base64-encoded data (in textual formats) or native binary (binary formats).protected voidStdSerializer.visitArrayFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, JsonFormatTypes itemType) protected voidStdSerializer.visitArrayFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, ValueSerializer<?> itemSerializer, JavaType itemType) protected voidStdSerializer.visitFloatFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, JsonParser.NumberType numberType) Helper method that calls necessary visit method(s) to indicate that the underlying JSON type is a floating-point JSON number.protected voidStdSerializer.visitIntFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, JsonParser.NumberType numberType) Helper method that calls necessary visit method(s) to indicate that the underlying JSON type is JSON Integer number.protected voidStdSerializer.visitIntFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, JsonParser.NumberType numberType, JsonValueFormat format) Helper method that calls necessary visit method(s) to indicate that the underlying JSON type is JSON Integer number, but that there is also a further format restriction involved.protected voidStdSerializer.visitStringFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint) Helper method that calls necessary visit method(s) to indicate that the underlying JSON type is JSON String.protected voidStdSerializer.visitStringFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, JsonValueFormat format) Helper method that calls necessary visit method(s) to indicate that the underlying JSON type is JSON String, but that there is a more refined logical typeprotected StdDelegatingSerializerStdDelegatingSerializer.withDelegate(Converter<Object, ?> converter, JavaType delegateType, ValueSerializer<?> delegateSerializer, BeanProperty prop) Method used for creating resolved contextual instances.Constructors in tools.jackson.databind.ser.std with parameters of type JavaTypeModifierConstructorDescriptionprotectedAsArraySerializerBase(Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> elementSerializer) Non-contextual, "blueprint" constructor typically called when the first instance is created, without knowledge of property it was used via.protectedAsArraySerializerBase(Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) General purpose constructor.protectedAsArraySerializerBase(Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle, BeanProperty property) General purpose constructor.protectedStdContainerSerializer(JavaType fullType, BeanProperty prop) StdDelegatingSerializer(Converter<Object, ?> converter, JavaType delegateType, ValueSerializer<?> delegateSerializer, BeanProperty prop) protectedStdDynamicSerializer(JavaType type, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer) protectedStdSerializer(JavaType type) -
Uses of JavaType in tools.jackson.databind.type
Subclasses of JavaType in tools.jackson.databind.typeModifier and TypeClassDescriptionfinal classArray types represent Java arrays, both primitive and object valued.classType that represents things that act similar toCollection; but may or may not be instances of that interface.final classType that represents Java Collection types (Lists, Sets).classSpecializedSimpleTypefor types that are allow iteration over Collection(-like) types: this includes types likeIterator.classType 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 classType that represents "true" Java Map types.classHelper type used when introspecting bindings for already resolved types, needed for specialization.classSpecializedSimpleTypefor types that are referential types, that is, values that can be dereferenced to another value (or null), of different type.classInternal placeholder type used for self-references.classSimple types are defined as anything other than one of recognized container types (arrays, Collections, Maps).classFields in tools.jackson.databind.type declared as JavaTypeModifier and TypeFieldDescriptionprotected JavaTypePlaceholderForType._actualTypeType assigned during wildcard resolution (which follows type structure resolution)protected final JavaTypeReferenceType._anchorTypeEssential type used for type ids, for example if type id is needed for referencing type with polymorphic handling.protected final JavaTypeArrayType._componentTypeType of elements in the array.protected final JavaTypeCollectionLikeType._elementTypeType of elements in collectionprotected final JavaTypeIterationType._iteratedTypeprotected final JavaTypeMapLikeType._keyTypeType of keys of Map.protected final JavaTypeReferenceType._referencedTypeprotected JavaTypeResolvedRecursiveType._referencedTypeprotected final JavaTypeTypeBase._superClassprotected final JavaType[]TypeBase._superInterfacesprotected final JavaTypeMapLikeType._valueTypeType of values of Map.Fields in tools.jackson.databind.type with type parameters of type JavaTypeModifier and TypeFieldDescriptionprotected final LookupCache<Object,JavaType> TypeFactory._typeCacheSince type resolution can be expensive (specifically when resolving actual generic types), we will use small cache to avoid repetitive resolution of core typesMethods in tools.jackson.databind.type that return JavaTypeModifier and TypeMethodDescriptionprotected JavaTypeTypeFactory._applyModifiers(Type srcType, JavaType resolvedType) protected JavaTypeTypeFactory._constructSimple(Class<?> raw, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) Factory method to call when no specialJavaTypeis needed, no generic parameters are passed.protected static JavaTypeTypeFactory._findWellKnownSimple(Class<?> clz) Helper method called to see if requested, non-generic-parameterized type is one of common, "well-known" types, instances of which are pre-constructed and do not need dynamic caching.protected JavaTypeTypeFactory._fromAny(ClassStack context, Type srcType, TypeBindings bindings) Factory method that can be used if type information is passed as Java typing returned fromgetGenericXxxmethods (usually for a return or argument type).protected JavaTypeTypeFactory._fromArrayType(ClassStack context, GenericArrayType type, TypeBindings bindings) protected JavaTypeTypeFactory._fromClass(ClassStack context, Class<?> rawType, TypeBindings bindings) protected JavaTypeTypeFactory._fromParamType(ClassStack context, ParameterizedType ptype, TypeBindings parentBindings) This method deals with parameterized types, that is, first class generic classes.protected JavaTypeTypeFactory._fromVariable(ClassStack context, TypeVariable<?> var, TypeBindings bindings) protected JavaTypeTypeFactory._fromWellKnownClass(ClassStack context, 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 alternateJavaTypeimplementation.protected JavaTypeTypeFactory._fromWellKnownInterface(ClassStack context, Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) protected JavaTypeTypeFactory._fromWildcard(ClassStack context, WildcardType type, TypeBindings bindings) protected JavaTypeTypeFactory._newSimpleType(Class<?> raw, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) Factory method that is to create a newSimpleTypewith no checks whatsoever.protected JavaTypeTypeFactory._referenceType(Class<?> rawClass, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) protected JavaTypeTypeFactory._resolveSuperClass(ClassStack context, Class<?> rawType, TypeBindings parentBindings) protected JavaType[]TypeFactory._resolveSuperInterfaces(ClassStack context, Class<?> rawType, TypeBindings parentBindings) protected JavaTypeTypeFactory._unknownType()PlaceholderForType.actualType()TypeFactory.constructFromCanonical(String canonical) Factory method for constructing aJavaTypeout of its canonical representation (seeResolvedType.toCanonical()).TypeFactory.constructGeneralizedType(JavaType baseType, Class<?> superClass) Method similar toTypeFactory.constructSpecializedType(tools.jackson.databind.JavaType, java.lang.Class<?>), but that creates a less-specific type of given type.TypeFactory.constructParametricType(Class<?> parametrized, Class<?>... parameterClasses) Factory method for constructingJavaTypethat represents a parameterized type.TypeFactory.constructParametricType(Class<?> rawType, JavaType... parameterTypes) Factory method for constructingJavaTypethat represents a parameterized type.TypeFactory.constructParametricType(Class<?> rawType, TypeBindings parameterTypes) Factory method for constructingJavaTypethat represents a parameterized type.TypeFactory.constructReferenceType(Class<?> rawType, JavaType referredType) Method for constructing aReferenceTypeinstance with given type parameter (type MUST take one and only one type parameter)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.constructSpecializedType(JavaType baseType, Class<?> subclass, boolean relaxedCompatibilityCheck) 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(TypeReference<?> typeRef) TypeBase.containedType(int index) TypeBindings.findBoundType(String name) Find type bound to specified name, if there is one; returns bound type if so, null if not.TypeFactory.findFirstTypeParameter(JavaType type, Class<?> expType) Specialized alternative toTypeFactory.findTypeParameters(tools.jackson.databind.JavaType, java.lang.Class<?>)final JavaTypeTypeBase.findSuperType(Class<?> rawTarget) JavaType[]TypeBase.findTypeParameters(Class<?> expType) 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.ReferenceType.getAnchorType()TypeBindings.getBoundType(int index) Get the type bound to the variable atindex.TypeBindings.getBoundTypeOrNull(int index) Get the type bound to the variable atindex.ArrayType.getContentType()CollectionLikeType.getContentType()IterationType.getContentType()MapLikeType.getContentType()ReferenceType.getContentType()MapLikeType.getKeyType()ReferenceType.getReferencedType()ResolvedRecursiveType.getSelfReferencedType()ResolvedRecursiveType.getSuperClass()TypeBase.getSuperClass()abstract JavaTypeTypeModifier.modifyType(JavaType type, Type jdkType, TypeBindings context, TypeFactory typeFactory) Method called to let modifier change constructed type definition.TypeFactory.moreSpecificType(JavaType type1, JavaType type2) Method that can be called to figure out more specific of two types (if they are related; that is, one implements or extends the other); or if not related, return the primary type.TypeParser.parse(TypeFactory tf, String canonical) protected JavaTypeTypeParser.parseType(TypeFactory tf, TypeParser.MyTokenizer tokens, int nestingAllowed) ArrayType.refine(Class<?> contentClass, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) CollectionLikeType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) CollectionType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) IterationType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) MapLikeType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) MapType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) PlaceholderForType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) ReferenceType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) ResolvedRecursiveType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) SimpleType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) TypeFactory.resolveMemberType(Type type, TypeBindings contextBindings) Method to call when resolving types ofMembers like Fields, Methods and Constructor parameters and there is aTypeBindings(that describes binding of type parameters within context) to pass.protected JavaType[]TypeBindings.typeParameterArray()static JavaTypeTypeFactory.unknownType()Method for constructing a marker type that indicates missing generic type information, which is handled same as simple type forjava.lang.Object.static JavaTypeTypeFactory.unsafeSimpleType(Class<?> cls) Method by core databind for constructing "simple"JavaTypes in cases where there is no access toTypeFactoryAND it is known that full resolution of the type is not needed (generally when type is just a placeholder).ArrayType.withContentType(JavaType contentType) CollectionLikeType.withContentType(JavaType contentType) CollectionType.withContentType(JavaType contentType) IterationType.withContentType(JavaType contentType) MapLikeType.withContentType(JavaType contentType) MapType.withContentType(JavaType contentType) PlaceholderForType.withContentType(JavaType contentType) ReferenceType.withContentType(JavaType contentType) ResolvedRecursiveType.withContentType(JavaType contentType) SimpleType.withContentType(JavaType contentType) PlaceholderForType.withContentTypeHandler(Object h) ResolvedRecursiveType.withContentTypeHandler(Object h) SimpleType.withContentTypeHandler(Object h) PlaceholderForType.withContentValueHandler(Object h) ResolvedRecursiveType.withContentValueHandler(Object h) CollectionLikeType.withHandlersFrom(JavaType src) MapLikeType.withHandlersFrom(JavaType src) PlaceholderForType.withStaticTyping()ResolvedRecursiveType.withStaticTyping()PlaceholderForType.withTypeHandler(Object h) ResolvedRecursiveType.withTypeHandler(Object h) PlaceholderForType.withValueHandler(Object h) ResolvedRecursiveType.withValueHandler(Object h) Methods in tools.jackson.databind.type that return types with arguments of type JavaTypeModifier and TypeMethodDescriptionTypeBase.getInterfaces()TypeBindings.getTypeParameters()Accessor for getting bound types in declaration orderTypeParser.parseTypes(TypeFactory tf, TypeParser.MyTokenizer tokens, int nestingAllowed) Methods in tools.jackson.databind.type with parameters of type JavaTypeModifier and TypeMethodDescriptionprotected JavaTypeTypeFactory._applyModifiers(Type srcType, JavaType resolvedType) protected JavaTypeTypeFactory._constructSimple(Class<?> raw, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) Factory method to call when no specialJavaTypeis needed, no generic parameters are passed.protected JavaTypeTypeFactory._fromWellKnownClass(ClassStack context, 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 alternateJavaTypeimplementation.protected JavaTypeTypeFactory._fromWellKnownInterface(ClassStack context, Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) protected JavaTypeTypeFactory._newSimpleType(Class<?> raw, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) Factory method that is to create a newSimpleTypewith no checks whatsoever.protected JavaTypeTypeFactory._referenceType(Class<?> rawClass, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) voidPlaceholderForType.actualType(JavaType t) static ArrayTypeArrayType.construct(JavaType componentType, TypeBindings bindings) static ArrayTypeArrayType.construct(JavaType componentType, TypeBindings bindings, Object valueHandler, Object typeHandler) static CollectionLikeTypeCollectionLikeType.construct(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType elemT) static CollectionTypeCollectionType.construct(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType elemT) static IterationTypeIterationType.construct(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType iteratedType) static MapTypeMapType.construct(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType keyT, JavaType valueT) static ReferenceTypeReferenceType.construct(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType refType) 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.constructGeneralizedType(JavaType baseType, Class<?> superClass) Method similar toTypeFactory.constructSpecializedType(tools.jackson.databind.JavaType, java.lang.Class<?>), but that creates a less-specific type of given type.TypeFactory.constructMapLikeType(Class<?> mapClass, JavaType keyType, JavaType valueType) Method for constructing aMapLikeTypeinstanceTypeFactory.constructMapType(Class<? extends Map> mapClass, JavaType keyType, JavaType valueType) Method for constructing aMapTypeinstanceTypeFactory.constructParametricType(Class<?> rawType, JavaType... parameterTypes) Factory method for constructingJavaTypethat represents a parameterized type.TypeFactory.constructReferenceType(Class<?> rawType, JavaType referredType) Method for constructing aReferenceTypeinstance with given type parameter (type MUST take one and only one type parameter)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.constructSpecializedType(JavaType baseType, Class<?> subclass, boolean relaxedCompatibilityCheck) Factory method for creating a subtype of given base type, as defined by specified subclass; but retaining generic type information if any.static TypeBindingsstatic TypeBindingsstatic TypeBindingsstatic TypeBindingsTypeBindings.createIfNeeded(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 TypeBindingsTypeBindings.createIfNeeded(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.TypeFactory.findFirstTypeParameter(JavaType type, Class<?> expType) Specialized alternative toTypeFactory.findTypeParameters(tools.jackson.databind.JavaType, java.lang.Class<?>)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.abstract JavaTypeTypeModifier.modifyType(JavaType type, Type jdkType, TypeBindings context, TypeFactory typeFactory) Method called to let modifier change constructed type definition.TypeFactory.moreSpecificType(JavaType type1, JavaType type2) Method that can be called to figure out more specific of two types (if they are related; that is, one implements or extends the other); or if not related, return the primary type.ArrayType.refine(Class<?> contentClass, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) CollectionLikeType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) CollectionType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) IterationType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) MapLikeType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) MapType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) PlaceholderForType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) ReferenceType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) ResolvedRecursiveType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) SimpleType.refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) voidClassStack.resolveSelfReferences(JavaType resolved) Method called when type that this stack frame represents is fully resolved, allowing self-references to be completed (if there are any)voidResolvedRecursiveType.setReference(JavaType ref) static CollectionLikeTypeCollectionLikeType.upgradeFrom(JavaType baseType, JavaType elementType) Factory method that can be used to "upgrade" a basic type into collection-like one; usually done viaTypeModifierstatic IterationTypeIterationType.upgradeFrom(JavaType baseType, JavaType iteratedType) Factory method that can be used to "upgrade" a basic type into iteration type; usually done viaTypeModifierstatic MapLikeTypeMapLikeType.upgradeFrom(JavaType baseType, JavaType keyT, JavaType valueT) Factory method that can be used to "upgrade" a basic type into collection-like one; usually done viaTypeModifierstatic ReferenceTypeReferenceType.upgradeFrom(JavaType baseType, JavaType refdType) Factory method that can be used to "upgrade" a basic type into collection-like one; usually done viaTypeModifierArrayType.withContentType(JavaType contentType) CollectionLikeType.withContentType(JavaType contentType) CollectionType.withContentType(JavaType contentType) IterationType.withContentType(JavaType contentType) MapLikeType.withContentType(JavaType contentType) MapType.withContentType(JavaType contentType) PlaceholderForType.withContentType(JavaType contentType) ReferenceType.withContentType(JavaType contentType) ResolvedRecursiveType.withContentType(JavaType contentType) SimpleType.withContentType(JavaType contentType) CollectionLikeType.withHandlersFrom(JavaType src) MapLikeType.withHandlersFrom(JavaType src) MapLikeType.withKeyType(JavaType keyType) MapType.withKeyType(JavaType keyType) Method parameters in tools.jackson.databind.type with type arguments of type JavaTypeModifier and TypeMethodDescriptionstatic TypeBindingsFactory method for constructing bindings for given class using specified type parameters.TypeFactory.withCache(LookupCache<Object, JavaType> cache) Mutant factory method that will construct newTypeFactorywith identical settings except for different cache.Constructors in tools.jackson.databind.type with parameters of type JavaTypeModifierConstructorDescriptionprotectedArrayType(JavaType componentType, TypeBindings bindings, Object emptyInstance, Object valueHandler, Object typeHandler, boolean asStatic) protectedCollectionLikeType(Class<?> collT, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType elemT, Object valueHandler, Object typeHandler, boolean asStatic) protectedCollectionLikeType(TypeBase base, JavaType elemT) protectedCollectionType(TypeBase base, JavaType elemT) protectedIterationType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType iteratedType, Object valueHandler, Object typeHandler, boolean asStatic) protectedIterationType(TypeBase base, JavaType iteratedType) Constructor used when upgrading into this type (viaIterationType.upgradeFrom(tools.jackson.databind.JavaType, tools.jackson.databind.JavaType), the usual way forIterationTypes to come into existence.protectedMapLikeType(Class<?> mapType, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType keyT, JavaType valueT, Object valueHandler, Object typeHandler, boolean asStatic) protectedMapLikeType(TypeBase base, JavaType keyT, JavaType valueT) protectedprotectedReferenceType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, JavaType refType, JavaType anchorType, Object valueHandler, Object typeHandler, boolean asStatic) protectedReferenceType(TypeBase base, JavaType refType) Constructor used when upgrading into this type (viaReferenceType.upgradeFrom(tools.jackson.databind.JavaType, tools.jackson.databind.JavaType), the usual way forReferenceTypes to come into existence.protectedSimpleType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts) protectedSimpleType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, int extraHash, Object valueHandler, Object typeHandler, boolean asStatic) Pass-through constructor used byReferenceType.protectedSimpleType(Class<?> cls, TypeBindings bindings, JavaType superClass, JavaType[] superInts, Object valueHandler, Object typeHandler, boolean asStatic) protectedTypeBase(Class<?> raw, TypeBindings bindings, JavaType superClass, JavaType[] superInts, int hash, Object valueHandler, Object typeHandler, boolean asStatic) Main constructor to use by extending classes.Constructor parameters in tools.jackson.databind.type with type arguments of type JavaTypeModifierConstructorDescriptionprotectedTypeFactory(LookupCache<Object, JavaType> typeCache) protectedTypeFactory(LookupCache<Object, JavaType> typeCache, TypeModifier[] mods, ClassLoader classLoader) -
Uses of JavaType in tools.jackson.databind.util
Fields in tools.jackson.databind.util declared as JavaTypeModifier and TypeFieldDescriptionprotected final JavaTypeJSONPObject._serializationTypeOptional static type to use for serialization; if null, runtime type is used.protected final JavaTypeJSONWrappedObject._serializationTypeOptional static type to use for serialization; if null, runtime type is used.protected JavaTypeTypeKey._typeMethods in tools.jackson.databind.util that return JavaTypeModifier and TypeMethodDescriptionprotected JavaTypeStdConverter._findConverterType(TypeFactory tf) Converter.getInputType(TypeFactory typeFactory) Method that can be used to find out actual input (source) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).StdConverter.getInputType(TypeFactory typeFactory) Converter.getOutputType(TypeFactory typeFactory) Method that can be used to find out actual output (target) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).StdConverter.getOutputType(TypeFactory typeFactory) SimpleBeanPropertyDefinition.getPrimaryType()JSONPObject.getSerializationType()JSONWrappedObject.getSerializationType()TypeKey.getType()Methods in tools.jackson.databind.util with parameters of type JavaTypeModifier and TypeMethodDescriptionstatic StringBeanUtil.checkUnsupportedType(MapperConfig<?> config, JavaType type) Helper method called byBeanDeserializerFactoryandBeanSerializerFactoryto check if given unrecognized type (to be (de)serialized as general POJO) is one of "well-known" types for which there would be a datatype module; and if so, return appropriate failure message to give to caller.RootNameLookup.findRootName(DatabindContext ctxt, JavaType rootType) static ObjectBeanUtil.getDefaultValue(JavaType type) Accessor used to find out "default value" to use for comparing values to serialize, to determine whether to exclude value from serialization with inclusion type ofJsonInclude.Include.NON_DEFAULT.static StringClassUtil.getTypeDescription(JavaType fullType) Helper method to create and return "backticked" description of given resolved type (or,"null"ifnullpassed), similar to return vaue ofClassUtil.getClassDescription(Object).static Class<?>final voidTypeKey.resetTyped(JavaType type) final voidTypeKey.resetUntyped(JavaType type) static final intstatic final intTypeKey.untypedHash(JavaType type) Constructors in tools.jackson.databind.util with parameters of type JavaTypeModifierConstructorDescriptionJSONPObject(String function, Object value, JavaType asType) JSONWrappedObject(String prefix, String suffix, Object value, JavaType asType) Constructor that should be used when specific serialization type to use is important, and needs to be passed instead of just using runtime (type-erased) type of the value.
JsonFormat.Valueargument