Class AnnotatedCreatorCollector
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.CollectorBase
-
- com.fasterxml.jackson.databind.introspect.AnnotatedCreatorCollector
-
final class AnnotatedCreatorCollector extends CollectorBase
Helper class used to contain details of how Creators (annotated constructors and static methods) are discovered to be accessed by and viaAnnotatedClass
.- Since:
- 2.9
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
_collectAnnotations
private AnnotatedConstructor
_defaultConstructor
private TypeResolutionContext
_typeContext
private TypeFactory
_typeFactory
-
Fields inherited from class com.fasterxml.jackson.databind.introspect.CollectorBase
_intr, NO_ANNOTATION_MAPS, NO_ANNOTATIONS
-
-
Constructor Summary
Constructors Constructor Description AnnotatedCreatorCollector(AnnotationIntrospector intr, TypeFactory tf, TypeResolutionContext tc, boolean collectAnnotations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private java.util.List<AnnotatedConstructor>
_findPotentialConstructors(JavaType type, java.lang.Class<?> primaryMixIn)
Helper method for locating constructors (and matching mix-in overrides) we might want to use; this is needed in order to mix information between the two and construct resultingAnnotatedConstructor
sprivate java.util.List<AnnotatedMethod>
_findPotentialFactories(JavaType type, java.lang.Class<?> primaryMixIn)
(package private) AnnotatedClass.Creators
collect(JavaType type, java.lang.Class<?> primaryMixIn)
private AnnotationMap
collectAnnotations(ClassUtil.Ctor main, ClassUtil.Ctor mixin)
private AnnotationMap[]
collectAnnotations(java.lang.annotation.Annotation[][] mainAnns, java.lang.annotation.Annotation[][] mixinAnns)
private AnnotationMap
collectAnnotations(java.lang.reflect.AnnotatedElement main, java.lang.reflect.AnnotatedElement mixin)
static AnnotatedClass.Creators
collectCreators(AnnotationIntrospector intr, TypeResolutionContext tc, JavaType type, java.lang.Class<?> primaryMixIn, boolean collectAnnotations)
Deprecated.static AnnotatedClass.Creators
collectCreators(AnnotationIntrospector intr, TypeFactory typeFactory, TypeResolutionContext tc, JavaType type, java.lang.Class<?> primaryMixIn, boolean collectAnnotations)
protected AnnotatedConstructor
constructDefaultConstructor(ClassUtil.Ctor ctor, ClassUtil.Ctor mixin)
protected AnnotatedMethod
constructFactoryCreator(java.lang.reflect.Method m, TypeResolutionContext typeResCtxt, java.lang.reflect.Method mixin)
protected AnnotatedConstructor
constructNonDefaultConstructor(ClassUtil.Ctor ctor, ClassUtil.Ctor mixin)
private static boolean
isIncludableConstructor(java.lang.reflect.Constructor<?> c)
-
Methods inherited from class com.fasterxml.jackson.databind.introspect.CollectorBase
_emptyAnnotationMap, _emptyAnnotationMaps, _ignorableAnnotation, collectAnnotations, collectAnnotations, collectDefaultAnnotations, collectDefaultFromBundle, collectFromBundle
-
-
-
-
Field Detail
-
_typeContext
private final TypeResolutionContext _typeContext
-
_typeFactory
private final TypeFactory _typeFactory
-
_collectAnnotations
private final boolean _collectAnnotations
- Since:
- 2.11
-
_defaultConstructor
private AnnotatedConstructor _defaultConstructor
-
-
Constructor Detail
-
AnnotatedCreatorCollector
AnnotatedCreatorCollector(AnnotationIntrospector intr, TypeFactory tf, TypeResolutionContext tc, boolean collectAnnotations)
-
-
Method Detail
-
collectCreators
@Deprecated public static AnnotatedClass.Creators collectCreators(AnnotationIntrospector intr, TypeResolutionContext tc, JavaType type, java.lang.Class<?> primaryMixIn, boolean collectAnnotations)
Deprecated.
-
collectCreators
public static AnnotatedClass.Creators collectCreators(AnnotationIntrospector intr, TypeFactory typeFactory, TypeResolutionContext tc, JavaType type, java.lang.Class<?> primaryMixIn, boolean collectAnnotations)
- Since:
- 2.11.3
-
collect
AnnotatedClass.Creators collect(JavaType type, java.lang.Class<?> primaryMixIn)
-
_findPotentialConstructors
private java.util.List<AnnotatedConstructor> _findPotentialConstructors(JavaType type, java.lang.Class<?> primaryMixIn)
Helper method for locating constructors (and matching mix-in overrides) we might want to use; this is needed in order to mix information between the two and construct resultingAnnotatedConstructor
s
-
_findPotentialFactories
private java.util.List<AnnotatedMethod> _findPotentialFactories(JavaType type, java.lang.Class<?> primaryMixIn)
-
constructDefaultConstructor
protected AnnotatedConstructor constructDefaultConstructor(ClassUtil.Ctor ctor, ClassUtil.Ctor mixin)
-
constructNonDefaultConstructor
protected AnnotatedConstructor constructNonDefaultConstructor(ClassUtil.Ctor ctor, ClassUtil.Ctor mixin)
-
constructFactoryCreator
protected AnnotatedMethod constructFactoryCreator(java.lang.reflect.Method m, TypeResolutionContext typeResCtxt, java.lang.reflect.Method mixin)
-
collectAnnotations
private AnnotationMap[] collectAnnotations(java.lang.annotation.Annotation[][] mainAnns, java.lang.annotation.Annotation[][] mixinAnns)
-
collectAnnotations
private AnnotationMap collectAnnotations(ClassUtil.Ctor main, ClassUtil.Ctor mixin)
-
collectAnnotations
private final AnnotationMap collectAnnotations(java.lang.reflect.AnnotatedElement main, java.lang.reflect.AnnotatedElement mixin)
-
isIncludableConstructor
private static boolean isIncludableConstructor(java.lang.reflect.Constructor<?> c)
-
-