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

public Class AnnotatedClassResolver

extends Object
Class Inheritance
Imports
java.lang.annotation.Annotation, .Retention, .Target, java.util.ArrayList, .Collections, .List, .Map, com.fasterxml.jackson.databind.AnnotationIntrospector, .JavaType, com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.ClassIntrospector.MixInResolver, com.fasterxml.jackson.databind.type.TypeBindings, com.fasterxml.jackson.databind.util.Annotations, .ClassUtil

Helper class that contains logic for resolving annotations to construct AnnotatedClass instances.
Since
2.9

Field Summary

Modifier and TypeField and Description
private final TypeBindings
private final Class<?>
private final boolean
private final MapperConfig<?>
private final AnnotationIntrospector
private final ClassIntrospector.MixInResolver
private final Class<?>
private final JavaType
private static final Class<?>
private static final Class<?>
private static final Class<?>
private static final Class<?>
private static final Annotations

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
private AnnotationCollector
private AnnotationCollector
_addClassMixIns(AnnotationCollector annotations, Class<?> target, Class<?> mixin)

private AnnotationCollector
private static void
_addSuperInterfaces(JavaType type, List<JavaType> result, boolean addClassItself)

private static void
_addSuperTypes(JavaType type, List<JavaType> result, boolean addClassItself)

private static boolean
_contains(List<JavaType> found, Class<?> raw)

pack-priv static AnnotatedClass
createArrayType(MapperConfig<?> config, Class<?> raw)

Internal helper method used for resolving array types, unless they happen to have associated mix-in to apply.

pack-priv static AnnotatedClass
createPrimordial(Class<?> raw)

Internal helper method used for resolving a small set of "primordial" types for which we do not accept any annotation information or overrides.

public static AnnotatedClass
private Annotations
resolveClassAnnotations(List<JavaType> superTypes)

Initialization method that will recursively collect Jackson annotations for this class and all super classes and interfaces.

pack-priv AnnotatedClass
public static AnnotatedClass
public static AnnotatedClass
public static AnnotatedClass
pack-priv AnnotatedClass
private static boolean
skippableArray(MapperConfig<?> config, Class<?> type)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_bindingsback to summary
private final TypeBindings _bindings
_classback to summary
private final Class<?> _class
_collectAnnotationsback to summary
private final boolean _collectAnnotations
Since
2.11
_configback to summary
private final MapperConfig<?> _config
_intrback to summary
private final AnnotationIntrospector _intr
_mixInResolverback to summary
private final ClassIntrospector.MixInResolver _mixInResolver
_primaryMixinback to summary
private final Class<?> _primaryMixin
_typeback to summary
private final JavaType _type
CLS_ENUMback to summary
private static final Class<?> CLS_ENUM
CLS_LISTback to summary
private static final Class<?> CLS_LIST
CLS_MAPback to summary
private static final Class<?> CLS_MAP
CLS_OBJECTback to summary
private static final Class<?> CLS_OBJECT
NO_ANNOTATIONSback to summary
private static final Annotations NO_ANNOTATIONS

Constructor Detail

AnnotatedClassResolverback to summary
pack-priv AnnotatedClassResolver(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)
AnnotatedClassResolverback to summary
pack-priv AnnotatedClassResolver(MapperConfig<?> config, Class<?> cls, ClassIntrospector.MixInResolver r)

Method Detail

_addAnnotationsIfNotPresentback to summary
private AnnotationCollector _addAnnotationsIfNotPresent(AnnotationCollector c, Annotation[] anns)
_addClassMixInsback to summary
private AnnotationCollector _addClassMixIns(AnnotationCollector annotations, Class<?> target, Class<?> mixin)
_addFromBundleIfNotPresentback to summary
private AnnotationCollector _addFromBundleIfNotPresent(AnnotationCollector c, Annotation bundle)
_addSuperInterfacesback to summary
private static void _addSuperInterfaces(JavaType type, List<JavaType> result, boolean addClassItself)
_addSuperTypesback to summary
private static void _addSuperTypes(JavaType type, List<JavaType> result, boolean addClassItself)
_containsback to summary
private static boolean _contains(List<JavaType> found, Class<?> raw)
createArrayTypeback to summary
pack-priv static AnnotatedClass createArrayType(MapperConfig<?> config, Class<?> raw)

Internal helper method used for resolving array types, unless they happen to have associated mix-in to apply.

createPrimordialback to summary
pack-priv static AnnotatedClass createPrimordial(Class<?> raw)

Internal helper method used for resolving a small set of "primordial" types for which we do not accept any annotation information or overrides.

resolveback to summary
public static AnnotatedClass resolve(MapperConfig<?> config, JavaType forType, ClassIntrospector.MixInResolver r)
resolveClassAnnotationsback to summary
private Annotations resolveClassAnnotations(List<JavaType> superTypes)

Initialization method that will recursively collect Jackson annotations for this class and all super classes and interfaces.

resolveFullyback to summary
pack-priv AnnotatedClass resolveFully()
resolveWithoutSuperTypesback to summary
public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, Class<?> forType)
resolveWithoutSuperTypesback to summary
public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, JavaType forType, ClassIntrospector.MixInResolver r)
resolveWithoutSuperTypesback to summary
public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, Class<?> forType, ClassIntrospector.MixInResolver r)
resolveWithoutSuperTypesback to summary
pack-priv AnnotatedClass resolveWithoutSuperTypes()
skippableArrayback to summary
private static boolean skippableArray(MapperConfig<?> config, Class<?> type)