Package | Description |
---|---|
com.fasterxml.jackson.databind.introspect |
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
|
Modifier and Type | Field and Description |
---|---|
protected AnnotationMap |
AnnotatedMember._annotations |
protected AnnotationMap |
AnnotatedClass._classAnnotations
Combined list of Jackson annotations that the class has,
including inheritable ones from super classes and interfaces
|
protected AnnotationMap[] |
AnnotatedWithParams._paramAnnotations
Annotations associated with parameters of the annotated
entity (method or constructor parameters)
|
private static AnnotationMap[] |
AnnotatedClass.NO_ANNOTATION_MAPS |
Modifier and Type | Method and Description |
---|---|
private AnnotationMap |
AnnotatedClass._addAnnotationsIfNotPresent(AnnotationMap result,
java.lang.annotation.Annotation[] anns) |
private AnnotationMap |
AnnotatedClass._classAnnotations() |
protected AnnotationMap |
AnnotatedClass._collectRelevantAnnotations(java.lang.annotation.Annotation[] anns) |
protected AnnotationMap[] |
AnnotatedClass._collectRelevantAnnotations(java.lang.annotation.Annotation[][] anns) |
private AnnotationMap |
AnnotatedClass._emptyAnnotationMap() |
private AnnotationMap[] |
AnnotatedClass._emptyAnnotationMaps(int count) |
private <T extends AnnotatedMember> |
POJOPropertyBuilder._getAllAnnotations(POJOPropertyBuilder.Linked<T> node)
Replacement, as per [databind#868], of simple access to annotations, which
does "deep merge" if an as necessary.
|
private AnnotationMap |
POJOPropertyBuilder._mergeAnnotations(int index,
POJOPropertyBuilder.Linked<? extends AnnotatedMember>... nodes) |
private AnnotationMap |
AnnotatedClass._resolveClassAnnotations()
Initialization method that will recursively collect Jackson
annotations for this class and all super classes and
interfaces.
|
protected AnnotationMap |
AnnotatedMember.getAllAnnotations() |
protected AnnotationMap |
AnnotatedClass.getAllAnnotations() |
protected abstract AnnotationMap |
Annotated.getAllAnnotations()
Internal helper method used to access annotation information;
not exposed to developers since instances are mutable.
|
AnnotationMap |
AnnotatedWithParams.getParameterAnnotations(int index) |
static AnnotationMap |
AnnotationMap.merge(AnnotationMap primary,
AnnotationMap secondary) |
Modifier and Type | Method and Description |
---|---|
private AnnotationMap |
AnnotatedClass._addAnnotationsIfNotPresent(AnnotationMap result,
java.lang.annotation.Annotation[] anns) |
protected void |
AnnotatedClass._addClassMixIns(AnnotationMap annotations,
java.lang.Class<?> target) |
protected void |
AnnotatedClass._addClassMixIns(AnnotationMap annotations,
java.lang.Class<?> toMask,
java.lang.Class<?> mixin) |
protected void |
AnnotatedClass._addClassMixIns(AnnotationMap annotations,
JavaType target)
Helper method for adding any mix-in annotations specified
class might have.
|
private <T extends AnnotatedMember> |
POJOPropertyBuilder._applyAnnotations(POJOPropertyBuilder.Linked<T> node,
AnnotationMap ann)
Helper method to handle recursive merging of annotations within accessor class,
to ensure no annotations are accidentally dropped within chain when non-visible
and secondary accessors are pruned later on.
|
static AnnotationMap |
AnnotationMap.merge(AnnotationMap primary,
AnnotationMap secondary) |
protected AnnotatedParameter |
AnnotatedWithParams.replaceParameterAnnotations(int index,
AnnotationMap ann)
Method called by parameter object when an augmented instance is created;
needs to replace parameter with new instance
|
AnnotatedConstructor |
AnnotatedConstructor.withAnnotations(AnnotationMap ann) |
AnnotatedClass |
AnnotatedClass.withAnnotations(AnnotationMap ann) |
AnnotatedField |
AnnotatedField.withAnnotations(AnnotationMap ann) |
AnnotatedMethod |
AnnotatedMethod.withAnnotations(AnnotationMap ann) |
AnnotatedParameter |
AnnotatedParameter.withAnnotations(AnnotationMap ann) |
Annotated |
VirtualAnnotatedMember.withAnnotations(AnnotationMap fallback) |
abstract Annotated |
Annotated.withAnnotations(AnnotationMap fallback)
Fluent factory method that will construct a new instance that uses specified
instance annotations instead of currently configured ones.
|
Constructor and Description |
---|
AnnotatedClass(JavaType type,
java.lang.Class<?> rawType,
TypeBindings bindings,
java.util.List<JavaType> superTypes,
AnnotationIntrospector aintr,
ClassIntrospector.MixInResolver mir,
TypeFactory tf,
AnnotationMap classAnnotations)
Constructor will not do any initializations, to allow for
configuring instances differently depending on use cases
|
AnnotatedConstructor(TypeResolutionContext ctxt,
java.lang.reflect.Constructor<?> constructor,
AnnotationMap classAnn,
AnnotationMap[] paramAnn) |
AnnotatedConstructor(TypeResolutionContext ctxt,
java.lang.reflect.Constructor<?> constructor,
AnnotationMap classAnn,
AnnotationMap[] paramAnn) |
AnnotatedField(TypeResolutionContext contextClass,
java.lang.reflect.Field field,
AnnotationMap annMap) |
AnnotatedMember(TypeResolutionContext ctxt,
AnnotationMap annotations) |
AnnotatedMethod(TypeResolutionContext ctxt,
java.lang.reflect.Method method,
AnnotationMap classAnn,
AnnotationMap[] paramAnnotations) |
AnnotatedMethod(TypeResolutionContext ctxt,
java.lang.reflect.Method method,
AnnotationMap classAnn,
AnnotationMap[] paramAnnotations) |
AnnotatedParameter(AnnotatedWithParams owner,
JavaType type,
AnnotationMap annotations,
int index) |
AnnotatedWithParams(TypeResolutionContext ctxt,
AnnotationMap annotations,
AnnotationMap[] paramAnnotations) |
AnnotatedWithParams(TypeResolutionContext ctxt,
AnnotationMap annotations,
AnnotationMap[] paramAnnotations) |