public abstract class AnnotationCollector
extends java.lang.Object
Annotations
(like AnnotationMap
).Modifier and Type | Class and Description |
---|---|
(package private) static class |
AnnotationCollector.EmptyCollector |
(package private) static class |
AnnotationCollector.NCollector |
static class |
AnnotationCollector.NoAnnotations
Immutable implementation for case where no annotations are associated with
an annotatable entity.
|
static class |
AnnotationCollector.OneAnnotation |
(package private) static class |
AnnotationCollector.OneCollector |
static class |
AnnotationCollector.TwoAnnotations |
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
_data
Optional data to carry along
|
protected static Annotations |
NO_ANNOTATIONS |
Modifier | Constructor and Description |
---|---|
protected |
AnnotationCollector(java.lang.Object d) |
Modifier and Type | Method and 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) |
protected static final Annotations NO_ANNOTATIONS
protected final java.lang.Object _data
public static Annotations emptyAnnotations()
public static AnnotationCollector emptyCollector()
public static AnnotationCollector emptyCollector(java.lang.Object data)
public abstract Annotations asAnnotations()
public abstract AnnotationMap asAnnotationMap()
public java.lang.Object getData()
public abstract boolean isPresent(java.lang.annotation.Annotation ann)
public abstract AnnotationCollector addOrOverride(java.lang.annotation.Annotation ann)