Class AnnotationCollector
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.AnnotationCollector
-
- Direct Known Subclasses:
AnnotationCollector.EmptyCollector,AnnotationCollector.NCollector,AnnotationCollector.OneCollector
public abstract class AnnotationCollector extends java.lang.ObjectHelper class used to collect annotations to be stored asAnnotations(likeAnnotationMap).- Since:
- 2.9
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classAnnotationCollector.EmptyCollector(package private) static classAnnotationCollector.NCollectorstatic classAnnotationCollector.NoAnnotationsImmutable implementation for case where no annotations are associated with an annotatable entity.static classAnnotationCollector.OneAnnotation(package private) static classAnnotationCollector.OneCollectorstatic classAnnotationCollector.TwoAnnotations
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object_dataOptional data to carry alongprotected static AnnotationsNO_ANNOTATIONS
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotationCollector(java.lang.Object d)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AnnotationCollectoraddOrOverride(java.lang.annotation.Annotation ann)abstract AnnotationMapasAnnotationMap()abstract AnnotationsasAnnotations()static AnnotationsemptyAnnotations()static AnnotationCollectoremptyCollector()static AnnotationCollectoremptyCollector(java.lang.Object data)java.lang.ObjectgetData()abstract booleanisPresent(java.lang.annotation.Annotation ann)
-
-
-
Field Detail
-
NO_ANNOTATIONS
protected static final Annotations NO_ANNOTATIONS
-
_data
protected final java.lang.Object _data
Optional data to carry along
-
-
Method Detail
-
emptyAnnotations
public static Annotations emptyAnnotations()
-
emptyCollector
public static AnnotationCollector emptyCollector()
-
emptyCollector
public static AnnotationCollector emptyCollector(java.lang.Object data)
-
asAnnotations
public abstract Annotations asAnnotations()
-
asAnnotationMap
public abstract AnnotationMap asAnnotationMap()
-
getData
public java.lang.Object getData()
-
isPresent
public abstract boolean isPresent(java.lang.annotation.Annotation ann)
-
addOrOverride
public abstract AnnotationCollector addOrOverride(java.lang.annotation.Annotation ann)
-
-