Class AnnotationCollector
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.AnnotationCollector
-
public abstract class AnnotationCollector extends java.lang.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 class
AnnotationCollector.NoAnnotations
Immutable implementation for case where no annotations are associated with an annotatable entity.static class
AnnotationCollector.OneAnnotation
static class
AnnotationCollector.TwoAnnotations
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AnnotationCollector
addOrOverride(java.lang.annotation.Annotation ann)
abstract AnnotationMap
asAnnotationMap()
abstract Annotations
asAnnotations()
static Annotations
emptyAnnotations()
static AnnotationCollector
emptyCollector()
static AnnotationCollector
emptyCollector(java.lang.Object data)
java.lang.Object
getData()
abstract boolean
isPresent(java.lang.annotation.Annotation ann)
-
-
-
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)
-
-