public class AnnotatedClassResolver
extends java.lang.Object
AnnotatedClass
instances.Modifier and Type | Field and Description |
---|---|
private TypeBindings |
_bindings |
private java.lang.Class<?> |
_class |
private MapperConfig<?> |
_config |
private AnnotationIntrospector |
_intr |
private ClassIntrospector.MixInResolver |
_mixInResolver |
private java.lang.Class<?> |
_primaryMixin |
private JavaType |
_type |
private static Annotations |
NO_ANNOTATIONS |
Constructor and Description |
---|
AnnotatedClassResolver(MapperConfig<?> config,
java.lang.Class<?> cls,
ClassIntrospector.MixInResolver r) |
AnnotatedClassResolver(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r) |
Modifier and Type | Method and Description |
---|---|
private AnnotationCollector |
_addAnnotationsIfNotPresent(AnnotationCollector c,
java.lang.annotation.Annotation[] anns) |
private AnnotationCollector |
_addClassMixIns(AnnotationCollector annotations,
java.lang.Class<?> target,
java.lang.Class<?> mixin) |
private AnnotationCollector |
_addFromBundleIfNotPresent(AnnotationCollector c,
java.lang.annotation.Annotation bundle) |
(package private) static AnnotatedClass |
createArrayType(MapperConfig<?> config,
java.lang.Class<?> raw)
Internal helper method used for resolving array types, unless they happen
to have associated mix-in to apply.
|
(package private) static AnnotatedClass |
createPrimordial(java.lang.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.
|
static AnnotatedClass |
resolve(MapperConfig<?> config,
JavaType forType,
ClassIntrospector.MixInResolver r) |
private Annotations |
resolveClassAnnotations(java.util.List<JavaType> superTypes)
Initialization method that will recursively collect Jackson
annotations for this class and all super classes and
interfaces.
|
(package private) AnnotatedClass |
resolveFully() |
(package private) AnnotatedClass |
resolveWithoutSuperTypes() |
static AnnotatedClass |
resolveWithoutSuperTypes(MapperConfig<?> config,
java.lang.Class<?> forType) |
static AnnotatedClass |
resolveWithoutSuperTypes(MapperConfig<?> config,
java.lang.Class<?> forType,
ClassIntrospector.MixInResolver r) |
static AnnotatedClass |
resolveWithoutSuperTypes(MapperConfig<?> config,
JavaType forType,
ClassIntrospector.MixInResolver r) |
private static boolean |
skippableArray(MapperConfig<?> config,
java.lang.Class<?> type) |
private static final Annotations NO_ANNOTATIONS
private final MapperConfig<?> _config
private final AnnotationIntrospector _intr
private final ClassIntrospector.MixInResolver _mixInResolver
private final TypeBindings _bindings
private final JavaType _type
private final java.lang.Class<?> _class
private final java.lang.Class<?> _primaryMixin
AnnotatedClassResolver(MapperConfig<?> config, JavaType type, ClassIntrospector.MixInResolver r)
AnnotatedClassResolver(MapperConfig<?> config, java.lang.Class<?> cls, ClassIntrospector.MixInResolver r)
public static AnnotatedClass resolve(MapperConfig<?> config, JavaType forType, ClassIntrospector.MixInResolver r)
public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, java.lang.Class<?> forType)
public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, JavaType forType, ClassIntrospector.MixInResolver r)
public static AnnotatedClass resolveWithoutSuperTypes(MapperConfig<?> config, java.lang.Class<?> forType, ClassIntrospector.MixInResolver r)
private static boolean skippableArray(MapperConfig<?> config, java.lang.Class<?> type)
static AnnotatedClass createPrimordial(java.lang.Class<?> raw)
static AnnotatedClass createArrayType(MapperConfig<?> config, java.lang.Class<?> raw)
AnnotatedClass resolveFully()
AnnotatedClass resolveWithoutSuperTypes()
private Annotations resolveClassAnnotations(java.util.List<JavaType> superTypes)
private AnnotationCollector _addClassMixIns(AnnotationCollector annotations, java.lang.Class<?> target, java.lang.Class<?> mixin)
private AnnotationCollector _addAnnotationsIfNotPresent(AnnotationCollector c, java.lang.annotation.Annotation[] anns)
private AnnotationCollector _addFromBundleIfNotPresent(AnnotationCollector c, java.lang.annotation.Annotation bundle)