Top Fields Constructors Methods
com.fasterxml.jackson.databind.introspect

public Class BasicClassIntrospector

extends ClassIntrospector
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.util.Collection, .Map, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.type.SimpleType, com.fasterxml.jackson.databind.util.ClassUtil

Field Summary

Modifier and TypeField and Description
protected static final BasicBeanDescription
private static final Class<?>
private static final Class<?>
private static final Class<?>
protected static final BasicBeanDescription
protected static final BasicBeanDescription
protected static final BasicBeanDescription
private static final long
protected static final BasicBeanDescription

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected BasicBeanDescription
protected BasicBeanDescription
_findStdTypeDesc(MapperConfig<?> config, JavaType type)

Method called to see if type is one of core JDK types that we have cached for efficiency.

protected boolean
_isStdJDKCollection(JavaType type)

Helper method used to decide whether we can omit introspection for members (methods, fields, constructors); we may do so for a limited number of container types JDK provides.

protected AnnotatedClass
protected AnnotatedClass
protected POJOPropertiesCollector
collectProperties(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, boolean forSerialization)

protected POJOPropertiesCollector
collectProperties(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, boolean forSerialization, String mutatorPrefix)

Deprecated
protected POJOPropertiesCollector
collectPropertiesWithBuilder(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, BeanDescription valueTypeDesc, boolean forSerialization)

protected POJOPropertiesCollector
collectPropertiesWithBuilder(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, boolean forSerialization)

Deprecated
protected POJOPropertiesCollector
constructPropertyCollector(MapperConfig<?> config, AnnotatedClass classDef, JavaType type, boolean forSerialization, AccessorNamingStrategy accNaming)

Overridable method called for creating POJOPropertiesCollector instance to use; override is needed if a custom sub-class is to be used.

protected POJOPropertiesCollector
constructPropertyCollector(MapperConfig<?> config, AnnotatedClass ac, JavaType type, boolean forSerialization, String mutatorPrefix)

Deprecated
public ClassIntrospector
copy()

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.copy.

Method that may be needed when `copy()`ing `ObjectMapper` instances.
public BasicBeanDescription
forClassAnnotations(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forClassAnnotations.

Factory method that constructs an introspector that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.
public BasicBeanDescription
forCreation(DeserializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forCreation.

Factory method that constructs an introspector that has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methods
public BasicBeanDescription
forDeserialization(DeserializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDeserialization.

Factory method that constructs an introspector that has all information needed for deserialization purposes.
public BasicBeanDescription
forDeserializationWithBuilder(DeserializationConfig config, JavaType builderType, ClassIntrospector.MixInResolver r, BeanDescription valueTypeDesc)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDeserializationWithBuilder.

Factory method that constructs an introspector that has all information needed for constructing deserializers that use intermediate Builder objects.
public BasicBeanDescription
public BasicBeanDescription
forDirectClassAnnotations(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDirectClassAnnotations.

Factory method that constructs an introspector that only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.
public BasicBeanDescription
forSerialization(SerializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forSerialization.

Factory method that constructs an introspector that has all information needed for serialization purposes.

Field Detail

BOOLEAN_DESCback to summary
protected static final BasicBeanDescription BOOLEAN_DESC
CLS_JSON_NODEback to summary
private static final Class<?> CLS_JSON_NODE
CLS_OBJECTback to summary
private static final Class<?> CLS_OBJECT
CLS_STRINGback to summary
private static final Class<?> CLS_STRING
INT_DESCback to summary
protected static final BasicBeanDescription INT_DESC
LONG_DESCback to summary
protected static final BasicBeanDescription LONG_DESC
OBJECT_DESCback to summary
protected static final BasicBeanDescription OBJECT_DESC
serialVersionUIDback to summary
private static final long serialVersionUID
STRING_DESCback to summary
protected static final BasicBeanDescription STRING_DESC

Constructor Detail

BasicClassIntrospectorback to summary
public BasicClassIntrospector()

Method Detail

_findStdJdkCollectionDescback to summary
protected BasicBeanDescription _findStdJdkCollectionDesc(MapperConfig<?> cfg, JavaType type)
_findStdTypeDescback to summary
protected BasicBeanDescription _findStdTypeDesc(MapperConfig<?> config, JavaType type)

Method called to see if type is one of core JDK types that we have cached for efficiency.

_isStdJDKCollectionback to summary
protected boolean _isStdJDKCollection(JavaType type)

Helper method used to decide whether we can omit introspection for members (methods, fields, constructors); we may do so for a limited number of container types JDK provides.

_resolveAnnotatedClassback to summary
protected AnnotatedClass _resolveAnnotatedClass(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)
Since
2.9
_resolveAnnotatedWithoutSuperTypesback to summary
protected AnnotatedClass _resolveAnnotatedWithoutSuperTypes(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)
Since
2.9
collectPropertiesback to summary
protected POJOPropertiesCollector collectProperties(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, boolean forSerialization)
Since
2.12
collectPropertiesback to summary
protected POJOPropertiesCollector collectProperties(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, boolean forSerialization, String mutatorPrefix)

Deprecated

Annotations
@Deprecated
collectPropertiesWithBuilderback to summary
protected POJOPropertiesCollector collectPropertiesWithBuilder(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, BeanDescription valueTypeDesc, boolean forSerialization)
Since
2.12
collectPropertiesWithBuilderback to summary
protected POJOPropertiesCollector collectPropertiesWithBuilder(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, boolean forSerialization)

Deprecated

Annotations
@Deprecated
constructPropertyCollectorback to summary
protected POJOPropertiesCollector constructPropertyCollector(MapperConfig<?> config, AnnotatedClass classDef, JavaType type, boolean forSerialization, AccessorNamingStrategy accNaming)

Overridable method called for creating POJOPropertiesCollector instance to use; override is needed if a custom sub-class is to be used.

Since
2.12
constructPropertyCollectorback to summary
protected POJOPropertiesCollector constructPropertyCollector(MapperConfig<?> config, AnnotatedClass ac, JavaType type, boolean forSerialization, String mutatorPrefix)

Deprecated

Annotations
@Deprecated
copyback to summary
public ClassIntrospector copy()

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.copy.

Doc from com.fasterxml.jackson.databind.introspect.ClassIntrospector.copy.

Method that may be needed when `copy()`ing `ObjectMapper` instances.

Annotations
@Override
forClassAnnotationsback to summary
public BasicBeanDescription forClassAnnotations(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forClassAnnotations.

Doc from com.fasterxml.jackson.databind.introspect.ClassIntrospector.forClassAnnotations.

Factory method that constructs an introspector that only has information regarding annotations class itself (or its supertypes) has, but nothing on methods or constructors.

Annotations
@Override
forCreationback to summary
public BasicBeanDescription forCreation(DeserializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forCreation.

Doc from com.fasterxml.jackson.databind.introspect.ClassIntrospector.forCreation.

Factory method that constructs an introspector that has information necessary for creating instances of given class ("creator"), as well as class annotations, but no information on member methods

Annotations
@Override
forDeserializationback to summary
public BasicBeanDescription forDeserialization(DeserializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDeserialization.

Doc from com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDeserialization.

Factory method that constructs an introspector that has all information needed for deserialization purposes.

Annotations
@Override
forDeserializationWithBuilderback to summary
public BasicBeanDescription forDeserializationWithBuilder(DeserializationConfig config, JavaType builderType, ClassIntrospector.MixInResolver r, BeanDescription valueTypeDesc)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDeserializationWithBuilder.

Doc from com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDeserializationWithBuilder.

Factory method that constructs an introspector that has all information needed for constructing deserializers that use intermediate Builder objects.

Annotations
@Override
forDeserializationWithBuilderback to summary
public BasicBeanDescription forDeserializationWithBuilder(DeserializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDeserializationWithBuilder.

Deprecated

Annotations
@Override
@Deprecated
forDirectClassAnnotationsback to summary
public BasicBeanDescription forDirectClassAnnotations(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDirectClassAnnotations.

Doc from com.fasterxml.jackson.databind.introspect.ClassIntrospector.forDirectClassAnnotations.

Factory method that constructs an introspector that only has information regarding annotations class itself has (but NOT including its supertypes), but nothing on methods or constructors.

Annotations
@Override
forSerializationback to summary
public BasicBeanDescription forSerialization(SerializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)

Implements abstract com.fasterxml.jackson.databind.introspect.ClassIntrospector.forSerialization.

Doc from com.fasterxml.jackson.databind.introspect.ClassIntrospector.forSerialization.

Factory method that constructs an introspector that has all information needed for serialization purposes.

Annotations
@Override