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