public abstract class AnnotationCollector extends Object
Annotations
(like AnnotationMap
).Modifier and Type | Class and 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 |
Modifier and Type | Field and Description |
---|---|
protected Object |
_data
Optional data to carry along
|
protected static Annotations |
NO_ANNOTATIONS |
Modifier | Constructor and Description |
---|---|
protected |
AnnotationCollector(Object d) |
Modifier and Type | Method and Description |
---|---|
abstract AnnotationCollector |
addOrOverride(Annotation ann) |
abstract AnnotationMap |
asAnnotationMap() |
abstract Annotations |
asAnnotations() |
static Annotations |
emptyAnnotations() |
static AnnotationCollector |
emptyCollector() |
static AnnotationCollector |
emptyCollector(Object data) |
Object |
getData() |
abstract boolean |
isPresent(Annotation ann) |
protected static final Annotations NO_ANNOTATIONS
protected final Object _data
protected AnnotationCollector(Object d)
public static Annotations emptyAnnotations()
public static AnnotationCollector emptyCollector()
public static AnnotationCollector emptyCollector(Object data)
public abstract Annotations asAnnotations()
public abstract AnnotationMap asAnnotationMap()
public Object getData()
public abstract boolean isPresent(Annotation ann)
public abstract AnnotationCollector addOrOverride(Annotation ann)
Copyright © 2008–2019 FasterXML. All rights reserved.