MergedAnnotation implementations.
| Modifier and Type | Field and Description |
|---|---|
| private volatile A |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationAttributes | asAnnotationAttributes(MergedAnnotation.
the adaptations that should be applied to the annotation values adaptationsImplements org. Create a new mutable |
| protected abstract A | |
| public MergedAnnotation | filterDefaultValues()
Implements org. Create a new view of the annotation with all attributes that have default values removed. |
| protected abstract <T> T | Returns: the attribute value ornull if the value is not found and
is not requiredthe attribute name attributeName, Class<T> the type to return (see type)MergedAnnotation class
documentation for details)Get the underlying attribute value. |
| public boolean | getBoolean(String
the attribute name attributeName)Implements org. Get a required boolean attribute value from the annotation. |
| public boolean[] | getBooleanArray(String
the attribute name attributeName)Implements org. Get a required boolean array attribute value from the annotation. |
| public byte | getByte(String
the attribute name attributeName)Implements org. Get a required byte attribute value from the annotation. |
| public byte[] | getByteArray(String
the attribute name attributeName)Implements org. Get a required byte array attribute value from the annotation. |
| public char | getChar(String
the attribute name attributeName)Implements org. Get a required char attribute value from the annotation. |
| public char[] | getCharArray(String
the attribute name attributeName)Implements org. Get a required char array attribute value from the annotation. |
| public Class | getClass(String
the attribute name attributeName)Implements org. Get a required class attribute value from the annotation. |
| public Class | getClassArray(String
the attribute name attributeName)Implements org. Get a required class array attribute value from the annotation. |
| public Optional | getDefaultValue(String
the attribute name attributeName)Implements org. Get the default attribute value from the annotation as specified in the annotation declaration. |
| public double | getDouble(String
the attribute name attributeName)Implements org. Get a required double attribute value from the annotation. |
| public double[] | getDoubleArray(String
the attribute name attributeName)Implements org. Get a required double array attribute value from the annotation. |
| public <E extends Enum | getEnum(String
the attribute name attributeName, Class<E> the enum type type)Implements org. Get a required enum attribute value from the annotation. |
| public <E extends Enum | getEnumArray(String
the attribute name attributeName, Class<E> the enum type type)Implements org. Get a required enum array attribute value from the annotation. |
| public float | getFloat(String
the attribute name attributeName)Implements org. Get a required float attribute value from the annotation. |
| public float[] | getFloatArray(String
the attribute name attributeName)Implements org. Get a required float array attribute value from the annotation. |
| public int | getInt(String
the attribute name attributeName)Implements org. Get a required int attribute value from the annotation. |
| public int[] | getIntArray(String
the attribute name attributeName)Implements org. Get a required int array attribute value from the annotation. |
| public long | getLong(String
the attribute name attributeName)Implements org. Get a required long attribute value from the annotation. |
| public long[] | getLongArray(String
the attribute name attributeName)Implements org. Get a required long array attribute value from the annotation. |
| private <T> T | |
| public short | getShort(String
the attribute name attributeName)Implements org. Get a required short attribute value from the annotation. |
| public short[] | getShortArray(String
the attribute name attributeName)Implements org. Get a required short array attribute value from the annotation. |
| public String | getString(String
the attribute name attributeName)Implements org. Get a required string attribute value from the annotation. |
| public String[] | getStringArray(String
the attribute name attributeName)Implements org. Get a required string array attribute value from the annotation. |
| public Optional | getValue(String
the attribute name attributeName)Implements org. Get an optional attribute value from the annotation. |
| 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.Implements org. Get an optional attribute value from the annotation. |
| public boolean | hasNonDefaultValue(String
the attribute name attributeName)Implements org. Determine if the specified attribute name has a non-default value when compared to the annotation declaration. |
| public boolean | isDirectlyPresent()
Implements org. Determine if the annotation is directly present on the source. |
| public boolean | isMetaPresent()
Implements org. Determine if the annotation is meta-present on the source. |
| public Optional | synthesize(Predicate<? super MergedAnnotation<A>>
the test to determine if the annotation can be synthesized condition)Implements org. Optionally create a type-safe synthesized version of this annotation based on a condition predicate. |
| public A | synthesize()
Implements org. Create a type-safe synthesized version of this merged annotation that can be used directly in code. |
| synthesizedAnnotation | back to summary |
|---|---|
| private volatile A synthesizedAnnotation
| |
| AbstractMergedAnnotation | back to summary |
|---|---|
| pack-priv AbstractMergedAnnotation() | |
| asAnnotationAttributes | back to summary |
|---|---|
| public AnnotationAttributes asAnnotationAttributes(MergedAnnotation. Implements org. Doc from org. Create a new mutable The
| |
| createSynthesizedAnnotation | back to summary |
|---|---|
| protected abstract A createSynthesizedAnnotation() 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 | |
| filterDefaultValues | back to summary |
|---|---|
| public MergedAnnotation Implements org. Doc from org. Create a new view of the annotation with all attributes that have default values removed.
| |
| getAttributeValue | back to summary |
|---|---|
| protected abstract <T> T getAttributeValue(String attributeName, Class<T> type) Get the underlying attribute value.
| |
| getBoolean | back to summary |
|---|---|
| public boolean getBoolean(String attributeName) Implements org. Doc from org. Get a required boolean attribute value from the annotation. | |
| getBooleanArray | back to summary |
|---|---|
| public boolean[] getBooleanArray(String attributeName) Implements org. Doc from org. Get a required boolean array attribute value from the annotation. | |
| getByte | back to summary |
|---|---|
| public byte getByte(String attributeName) Implements org. Doc from org. Get a required byte attribute value from the annotation. | |
| getByteArray | back to summary |
|---|---|
| public byte[] getByteArray(String attributeName) Implements org. Doc from org. Get a required byte array attribute value from the annotation. | |
| getChar | back to summary |
|---|---|
| public char getChar(String attributeName) Implements org. Doc from org. Get a required char attribute value from the annotation. | |
| getCharArray | back to summary |
|---|---|
| public char[] getCharArray(String attributeName) Implements org. Doc from org. Get a required char array attribute value from the annotation. | |
| getClass | back to summary |
|---|---|
| public Class Implements org. Doc from org. Get a required class attribute value from the annotation. | |
| getClassArray | back to summary |
|---|---|
| public Class Implements org. Doc from org. Get a required class array attribute value from the annotation. | |
| getDefaultValue | back to summary |
|---|---|
| public Optional Implements org. Doc from org. Get the default attribute value from the annotation as specified in the annotation declaration.
| |
| getDouble | back to summary |
|---|---|
| public double getDouble(String attributeName) Implements org. Doc from org. Get a required double attribute value from the annotation. | |
| getDoubleArray | back to summary |
|---|---|
| public double[] getDoubleArray(String attributeName) Implements org. Doc from org. Get a required double array attribute value from the annotation. | |
| getEnum | back to summary |
|---|---|
| public <E extends Enum Implements org. Doc from org. Get a required enum attribute value from the annotation. | |
| getEnumArray | back to summary |
|---|---|
| public <E extends Enum Implements org. Doc from org. Get a required enum array attribute value from the annotation.
| |
| getFloat | back to summary |
|---|---|
| public float getFloat(String attributeName) Implements org. Doc from org. Get a required float attribute value from the annotation. | |
| getFloatArray | back to summary |
|---|---|
| public float[] getFloatArray(String attributeName) Implements org. Doc from org. Get a required float array attribute value from the annotation. | |
| getInt | back to summary |
|---|---|
| public int getInt(String attributeName) Implements org. Doc from org. Get a required int attribute value from the annotation. | |
| getIntArray | back to summary |
|---|---|
| public int[] getIntArray(String attributeName) Implements org. Doc from org. Get a required int array attribute value from the annotation. | |
| getLong | back to summary |
|---|---|
| public long getLong(String attributeName) Implements org. Doc from org. Get a required long attribute value from the annotation. | |
| getLongArray | back to summary |
|---|---|
| public long[] getLongArray(String attributeName) Implements org. Doc from org. Get a required long array attribute value from the annotation. | |
| getRequiredAttributeValue | back to summary |
|---|---|
| private <T> T getRequiredAttributeValue(String attributeName, Class<T> type) | |
| getShort | back to summary |
|---|---|
| public short getShort(String attributeName) Implements org. Doc from org. Get a required short attribute value from the annotation. | |
| getShortArray | back to summary |
|---|---|
| public short[] getShortArray(String attributeName) Implements org. Doc from org. Get a required short array attribute value from the annotation. | |
| getString | back to summary |
|---|---|
| public String getString(String attributeName) Implements org. Doc from org. Get a required string attribute value from the annotation. | |
| getStringArray | back to summary |
|---|---|
| public String[] getStringArray(String attributeName) Implements org. Doc from org. Get a required string array attribute value from the annotation. | |
| getValue | back to summary |
|---|---|
| public Optional Implements org. Doc from org. Get an optional attribute value from the annotation.
| |
| getValue | back to summary |
|---|---|
| public <T> Optional Implements org. Doc from org. Get an optional attribute value from the annotation.
| |
| hasNonDefaultValue | back to summary |
|---|---|
| public boolean hasNonDefaultValue(String attributeName) Implements org. Doc from org. Determine if the specified attribute name has a non-default value when compared to the annotation declaration. | |
| isDirectlyPresent | back to summary |
|---|---|
| public boolean isDirectlyPresent() Implements org. Doc from org. Determine if the annotation is directly present on the source. A directly present annotation is one that the user has explicitly
declared and not one that is meta-present
or
| |
| isMetaPresent | back to summary |
|---|---|
| public boolean isMetaPresent() Implements org. Doc from org. Determine if the annotation is meta-present on the source. A meta-present annotation is an annotation that the user hasn't explicitly declared, but has been used as a meta-annotation somewhere in the annotation hierarchy.
| |
| synthesize | back to summary |
|---|---|
| public Optional Implements org. Doc from org. Optionally create a type-safe synthesized version of this annotation based on a condition predicate. The result is synthesized using a JDK Consult the documentation for
| |
| synthesize | back to summary |
|---|---|
| public A synthesize() Implements org. Doc from org. Create a type-safe synthesized version of this merged annotation that can be used directly in code. The result is synthesized using a JDK If this merged annotation was created from a map of annotation attributes or default attribute values, those attributes will always be synthesized into an annotation instance. If this merged annotation was created from an annotation instance, that annotation will be returned unmodified if it is not synthesizable. An annotation is considered synthesizable if it has not already been synthesized and one of the following is true.
| |