public class BasicClassIntrospector extends ClassIntrospector implements Serializable
ClassIntrospector.MixInResolver
Modifier and Type | Field and Description |
---|---|
protected static BasicBeanDescription |
BOOLEAN_DESC |
protected static BasicBeanDescription |
INT_DESC |
protected static BasicBeanDescription |
LONG_DESC |
protected static BasicBeanDescription |
OBJECT_DESC |
protected static BasicBeanDescription |
STRING_DESC |
Constructor and Description |
---|
BasicClassIntrospector() |
Modifier and Type | Method and Description |
---|---|
protected BasicBeanDescription |
_findStdJdkCollectionDesc(MapperConfig<?> cfg,
JavaType type) |
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 |
_resolveAnnotatedClass(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r) |
protected AnnotatedClass |
_resolveAnnotatedWithoutSuperTypes(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r) |
protected POJOPropertiesCollector |
collectProperties(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r,
boolean forSerialization) |
protected POJOPropertiesCollector |
collectPropertiesWithBuilder(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r,
BeanDescription valueTypeDesc,
boolean forSerialization) |
protected POJOPropertiesCollector |
constructPropertyCollector(MapperConfig<?> config,
AnnotatedClass classDef,
JavaType type,
boolean forSerialization,
AccessorNamingStrategy accNaming) |
ClassIntrospector |
copy()
Method that may be needed when `copy()`ing `ObjectMapper` instances.
|
BasicBeanDescription |
forClassAnnotations(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that only has
information regarding annotations class itself (or its supertypes) has,
but nothing on methods or constructors.
|
BasicBeanDescription |
forCreation(DeserializationConfig config,
JavaType type,
ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that has
information necessary for creating instances of given
class ("creator"), as well as class annotations, but
no information on member methods
|
BasicBeanDescription |
forDeserialization(DeserializationConfig config,
JavaType type,
ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that has all
information needed for deserialization purposes.
|
BasicBeanDescription |
forDeserializationWithBuilder(DeserializationConfig config,
JavaType type,
ClassIntrospector.MixInResolver r)
Deprecated.
|
BasicBeanDescription |
forDeserializationWithBuilder(DeserializationConfig config,
JavaType builderType,
ClassIntrospector.MixInResolver r,
BeanDescription valueTypeDesc)
Factory method that constructs an introspector that has all
information needed for constructing deserializers that use
intermediate Builder objects.
|
BasicBeanDescription |
forDirectClassAnnotations(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that only has
information regarding annotations class itself has (but NOT including
its supertypes), but nothing on methods or constructors.
|
BasicBeanDescription |
forSerialization(SerializationConfig config,
JavaType type,
ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that has all
information needed for serialization purposes.
|
protected static final BasicBeanDescription STRING_DESC
protected static final BasicBeanDescription BOOLEAN_DESC
protected static final BasicBeanDescription INT_DESC
protected static final BasicBeanDescription LONG_DESC
protected static final BasicBeanDescription OBJECT_DESC
public ClassIntrospector copy()
ClassIntrospector
copy
in class ClassIntrospector
public BasicBeanDescription forSerialization(SerializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)
ClassIntrospector
forSerialization
in class ClassIntrospector
public BasicBeanDescription forDeserialization(DeserializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)
ClassIntrospector
forDeserialization
in class ClassIntrospector
public BasicBeanDescription forDeserializationWithBuilder(DeserializationConfig config, JavaType builderType, ClassIntrospector.MixInResolver r, BeanDescription valueTypeDesc)
ClassIntrospector
forDeserializationWithBuilder
in class ClassIntrospector
@Deprecated public BasicBeanDescription forDeserializationWithBuilder(DeserializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)
forDeserializationWithBuilder
in class ClassIntrospector
public BasicBeanDescription forCreation(DeserializationConfig config, JavaType type, ClassIntrospector.MixInResolver r)
ClassIntrospector
forCreation
in class ClassIntrospector
public BasicBeanDescription forClassAnnotations(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)
ClassIntrospector
forClassAnnotations
in class ClassIntrospector
public BasicBeanDescription forDirectClassAnnotations(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)
ClassIntrospector
forDirectClassAnnotations
in class ClassIntrospector
protected POJOPropertiesCollector collectProperties(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, boolean forSerialization)
protected POJOPropertiesCollector collectPropertiesWithBuilder(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r, BeanDescription valueTypeDesc, boolean forSerialization)
protected POJOPropertiesCollector constructPropertyCollector(MapperConfig<?> config, AnnotatedClass classDef, JavaType type, boolean forSerialization, AccessorNamingStrategy accNaming)
protected BasicBeanDescription _findStdTypeDesc(MapperConfig<?> config, JavaType type)
protected boolean _isStdJDKCollection(JavaType type)
protected BasicBeanDescription _findStdJdkCollectionDesc(MapperConfig<?> cfg, JavaType type)
protected AnnotatedClass _resolveAnnotatedClass(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)
protected AnnotatedClass _resolveAnnotatedWithoutSuperTypes(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)
Copyright © 2008–2020 FasterXML. All rights reserved.