Top Description Fields Constructors Methods
tools.jackson.databind.introspect

public Class AnnotatedClassResolver

extends Object
Class Inheritance
Imports
java.lang.annotation.Annotation, .Retention, .Target, java.util.*, tools.jackson.databind.AnnotationIntrospector, .JavaType, tools.jackson.databind.cfg.MapperConfig, tools.jackson.databind.type.TypeBindings, tools.jackson.databind.util.Annotations, .ClassUtil

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

Field Summary

Modifier and TypeField and Description
private final TypeBindings
private final Class<?>
private final boolean
private final MapperConfig<?>
private final AnnotationIntrospector
private final 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
private static final Annotation[]

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)

private static Annotation[]
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.

public static AnnotatedClass
resolve(MapperConfig<?> config, JavaType forType, MixInResolver r)

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
_configback to summary
private final MapperConfig<?> _config
_intrback to summary
private final AnnotationIntrospector _intr
_mixInResolverback to summary
private final 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
EMPTY_ANNOTATIONSback to summary
private static final Annotations EMPTY_ANNOTATIONS
NO_ANNOTATIONSback to summary
private static final Annotation[] NO_ANNOTATIONS

Constructor Detail

AnnotatedClassResolverback to summary
pack-priv AnnotatedClassResolver(MapperConfig<?> config, JavaType type, MixInResolver r)
AnnotatedClassResolverback to summary
pack-priv AnnotatedClassResolver(MapperConfig<?> config, Class<?> cls, 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)
_findClassAnnotationsback to summary
private static Annotation[] _findClassAnnotations(Class<?> cls)
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.

resolveback to summary
public static AnnotatedClass resolve(MapperConfig<?> config, JavaType forType, 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, MixInResolver r)
resolveWithoutSuperTypesback to summary
public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, Class<?> forType, MixInResolver r)
resolveWithoutSuperTypesback to summary
pack-priv AnnotatedClass resolveWithoutSuperTypes()
skippableArrayback to summary
private static boolean skippableArray(MapperConfig<?> config, Class<?> type)