public abstract class AnnotationCollector
extends java.lang.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 | 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) |
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)
Copyright © 2010 - 2020 Adobe. All Rights Reserved