AbstractMergedAnnotation used as the implementation of
MergedAnnotation#missing().
| Modifier and Type | Field and Description |
|---|---|
| private static final MissingMergedAnnotation |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationAttributes | asAnnotationAttributes(MergedAnnotation.
the adaptations that should be applied to the annotation values adaptationsOverrides org. Implements org. Create a new mutable |
| public Map | asMap(MergedAnnotation.
the adaptations that should be applied to the annotation values adaptationsImplements org. Get an immutable |
| public <T extends Map | asMap(Function<MergedAnnotation<?>, T>
a map factory factory, MergedAnnotation.the adaptations that should be applied to the annotation values adaptationsImplements org. Create a new |
| protected A | createSynthesizedAnnotation()
Implements abstract org. Factory method used to create the synthesized annotation. |
| public MergedAnnotation | filterAttributes(Predicate<String>
a predicate used to filter attribute names predicate)Implements org. Create a new view of the annotation with only attributes that match the given predicate. |
| public int | getAggregateIndex()
Implements org. Get the index of the aggregate collection containing this annotation. |
| public <T extends Annotation> MergedAnnotation | getAnnotation(String
the attribute name attributeName, Class<T> the annotation type type)Implements org. Get a required annotation attribute value from the annotation. |
| public <T extends Annotation> MergedAnnotation | getAnnotationArray(String
the attribute name attributeName, Class<T> the annotation type type)Implements org. Get a required annotation array attribute value from the annotation. |
| protected <T> T | getAttributeValue(String
the attribute name attributeName, Class<T> the type to return (see type)MergedAnnotation class
documentation for details)Implements abstract org. Get the underlying attribute value. |
| public <T> Optional | getDefaultValue(String
the attribute name attributeName, Class<T> the attribute type. Must be compatible with the underlying
attribute type or type)Object.class.Implements org. Get the default attribute value from the annotation as specified in the annotation declaration. |
| public int | getDistance()
Implements org. Get the distance of this annotation related to its use as a meta-annotation. |
| pack-priv static <A extends Annotation> MergedAnnotation | |
| public MergedAnnotation | getMetaSource()
Implements org. Get the source of the meta-annotation, or |
| public List | getMetaTypes()
Implements org. Get the complete list of annotation types within the annotation hierarchy
from this annotation to the |
| public MergedAnnotation | getRoot()
Implements org. Get the root annotation, i.e. the |
| public Object | getSource()
Implements org. Get the source that ultimately declared the root annotation, or
|
| public Class | getType()
Implements org. Get the |
| public <T> Optional | getValue(String
the attribute name attributeName, Class<T> the attribute type. Must be compatible with the underlying
attribute type or type)Object.class.Overrides org. Implements org. Get an optional attribute value from the annotation. |
| public boolean | hasDefaultValue(String
the attribute name attributeName)Implements org. Determine if the specified attribute name has a default value when compared to the annotation declaration. |
| public boolean | hasNonDefaultValue(String
the attribute name attributeName)Overrides org. Implements org. Determine if the specified attribute name has a non-default value when compared to the annotation declaration. |
| public boolean | isPresent()
Implements org. Determine if the annotation is present on the source. |
| public String | |
| public MergedAnnotation | withNonMergedAttributes()
Implements org. Create a new view of the annotation that exposes non-merged attribute values. |
| INSTANCE | back to summary |
|---|---|
| private static final MissingMergedAnnotation<?> INSTANCE | |
| MissingMergedAnnotation | back to summary |
|---|---|
| private MissingMergedAnnotation() | |
| asAnnotationAttributes | back to summary |
|---|---|
| public AnnotationAttributes asAnnotationAttributes(MergedAnnotation. Overrides org. Implements org. Doc from org. Create a new mutable The
| |
| asMap | back to summary |
|---|---|
| public Map Implements org. Doc from org. Get an immutable The | |
| asMap | back to summary |
|---|---|
| public <T extends Map Implements org. Doc from org. Create a new The
| |
| createSynthesizedAnnotation | back to summary |
|---|---|
| protected A createSynthesizedAnnotation() Implements abstract org. Doc from org. Factory method used to create the synthesized annotation. If the source is an annotation that is not synthesizable, it will be returned unmodified. Consult the documentation for
| |
| filterAttributes | back to summary |
|---|---|
| public MergedAnnotation Implements org. Doc from org. Create a new view of the annotation with only attributes that match the given predicate.
| |
| getAggregateIndex | back to summary |
|---|---|
| public int getAggregateIndex() Implements org. Doc from org. Get the index of the aggregate collection containing this annotation. Can be used to reorder a stream of annotations, for example, to give a
higher priority to annotations declared on a superclass or interface. A
missing annotation will always return an aggregate
index of
| |
| getAnnotation | back to summary |
|---|---|
| public <T extends Annotation> MergedAnnotation Implements org. Doc from org. Get a required annotation attribute value from the annotation.
| |
| getAnnotationArray | back to summary |
|---|---|
| public <T extends Annotation> MergedAnnotation Implements org. Doc from org. Get a required annotation array attribute value from the annotation.
| |
| getAttributeValue | back to summary |
|---|---|
| protected <T> T getAttributeValue(String attributeName, Class<T> type) Implements abstract org. Doc from org. Get the underlying attribute value.
| |
| getDefaultValue | back to summary |
|---|---|
| public <T> Optional Implements org. Doc from org. Get the default attribute value from the annotation as specified in the annotation declaration.
| |
| getDistance | back to summary |
|---|---|
| public int getDistance() Implements org. Doc from org. Get the distance of this annotation related to its use as a meta-annotation. A directly declared annotation has a distance of
| |
| getInstance | back to summary |
|---|---|
pack-priv static <A extends Annotation> MergedAnnotation
| |
| getMetaSource | back to summary |
|---|---|
| public MergedAnnotation Implements org. Doc from org. Get the source of the meta-annotation, or The meta-source is the annotation that was meta-annotated with this annotation.
| |
| getMetaTypes | back to summary |
|---|---|
| public List Implements org. Doc from org. Get the complete list of annotation types within the annotation hierarchy
from this annotation to the Provides a useful way to uniquely identify a merged annotation instance.
| |
| getRoot | back to summary |
|---|---|
| public MergedAnnotation Implements org. Doc from org. Get the root annotation, i.e. the
| |
| getSource | back to summary |
|---|---|
| public Object getSource() Implements org. Doc from org. Get the source that ultimately declared the root annotation, or
If this merged annotation was created
| |
| getType | back to summary |
|---|---|
| public Class Implements org. Doc from org. Get the | |
| getValue | back to summary |
|---|---|
| public <T> Optional Overrides org. Implements org. Doc from org. Get an optional attribute value from the annotation.
| |
| hasDefaultValue | back to summary |
|---|---|
| public boolean hasDefaultValue(String attributeName) Implements org. Doc from org. Determine if the specified attribute name has a default value when compared to the annotation declaration. | |
| hasNonDefaultValue | back to summary |
|---|---|
| public boolean hasNonDefaultValue(String attributeName) Overrides org. Implements org. Doc from org. Determine if the specified attribute name has a non-default value when compared to the annotation declaration. | |
| isPresent | back to summary |
|---|---|
| public boolean isPresent() Implements org. Doc from org. Determine if the annotation is present on the source. Considers
directly present and
meta-present annotations within the context
of the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| withNonMergedAttributes | back to summary |
|---|---|
| public MergedAnnotation Implements org. Doc from org. Create a new view of the annotation that exposes non-merged attribute values. Methods from this view will return attribute values with only alias mirroring
rules applied. Aliases to
| |