Class AnnotatedClassResolver
java.lang.Object
tools.jackson.databind.introspect.AnnotatedClassResolver
Helper class that contains logic for resolving annotations to construct
AnnotatedClass instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeBindingsprivate final Class<?> private final booleanprivate final MapperConfig<?> private final AnnotationIntrospectorprivate final MixInResolverprivate final Class<?> private final JavaTypeprivate static final Class<?> private static final Class<?> private static final Class<?> private static final Class<?> private static final Annotationsprivate static final Annotation[] -
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedClassResolver(MapperConfig<?> config, Class<?> cls, MixInResolver r) AnnotatedClassResolver(MapperConfig<?> config, JavaType type, MixInResolver r) -
Method Summary
Modifier and TypeMethodDescriptionprivate AnnotationCollectorprivate AnnotationCollector_addClassMixIns(AnnotationCollector annotations, Class<?> target, Class<?> mixin) private AnnotationCollectorprivate static void_addSuperInterfaces(JavaType type, List<JavaType> result, boolean addClassItself) private static void_addSuperTypes(JavaType type, List<JavaType> result, boolean addClassItself) private static booleanprivate static Annotation[]_findClassAnnotations(Class<?> cls) (package private) static AnnotatedClasscreateArrayType(MapperConfig<?> config, Class<?> raw) Internal helper method used for resolving array types, unless they happen to have associated mix-in to apply.static AnnotatedClassresolve(MapperConfig<?> config, JavaType forType, MixInResolver r) private AnnotationsresolveClassAnnotations(List<JavaType> superTypes) Initialization method that will recursively collect Jackson annotations for this class and all super classes and interfaces.(package private) AnnotatedClass(package private) AnnotatedClassstatic AnnotatedClassresolveWithoutSuperTypes(MapperConfig<?> config, Class<?> forType) static AnnotatedClassresolveWithoutSuperTypes(MapperConfig<?> config, Class<?> forType, MixInResolver r) static AnnotatedClassresolveWithoutSuperTypes(MapperConfig<?> config, JavaType forType, MixInResolver r) private static booleanskippableArray(MapperConfig<?> config, Class<?> type)
-
Field Details
-
NO_ANNOTATIONS
-
EMPTY_ANNOTATIONS
-
CLS_OBJECT
-
CLS_ENUM
-
CLS_LIST
-
CLS_MAP
-
_config
-
_intr
-
_mixInResolver
-
_bindings
-
_type
-
_class
-
_primaryMixin
-
_collectAnnotations
private final boolean _collectAnnotations
-
-
Constructor Details
-
AnnotatedClassResolver
AnnotatedClassResolver(MapperConfig<?> config, JavaType type, MixInResolver r) -
AnnotatedClassResolver
AnnotatedClassResolver(MapperConfig<?> config, Class<?> cls, MixInResolver r)
-
-
Method Details
-
resolve
-
resolveWithoutSuperTypes
-
resolveWithoutSuperTypes
public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, JavaType forType, MixInResolver r) -
resolveWithoutSuperTypes
public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, Class<?> forType, MixInResolver r) -
skippableArray
-
createArrayType
Internal helper method used for resolving array types, unless they happen to have associated mix-in to apply. -
resolveFully
AnnotatedClass resolveFully() -
resolveWithoutSuperTypes
AnnotatedClass resolveWithoutSuperTypes() -
_addSuperTypes
-
_addSuperInterfaces
-
_contains
-
resolveClassAnnotations
Initialization method that will recursively collect Jackson annotations for this class and all super classes and interfaces. -
_addClassMixIns
private AnnotationCollector _addClassMixIns(AnnotationCollector annotations, Class<?> target, Class<?> mixin) -
_addAnnotationsIfNotPresent
-
_addFromBundleIfNotPresent
-
_findClassAnnotations
-