Class AnnotationDescription.AbstractBase
java.lang.Object
net.bytebuddy.description.annotation.AnnotationDescription.AbstractBase
- All Implemented Interfaces:
AnnotationDescription
- Direct Known Subclasses:
AnnotationDescription.ForLoadedAnnotation, AnnotationDescription.Latent, AnnotationDescription.Latent.Loadable, TypePool.Default.LazyTypeDescription.LazyAnnotationDescription
- Enclosing interface:
AnnotationDescription
public abstract static class AnnotationDescription.AbstractBase
extends Object
implements AnnotationDescription
An adapter implementation of an annotation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AnnotationDescription
AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S>, AnnotationDescription.RenderingDispatcher -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Set<ElementType> An array containing all element types that are a legal annotation target when such a target is not specified explicitly.private static final MethodDescription.InDefinedShapeA description of theRetention.value()method.private static final MethodDescription.InDefinedShapeA description of theTarget.value()method.Fields inherited from interface AnnotationDescription
UNDEFINED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a set of allElementTypes that can declare this annotation.Returns this annotation's retention policy.AnnotationValue<?, ?> Returns a value of this annotation.inthashCode()booleanChecks if this annotation is documented.booleanChecks if this annotation is inherited.booleanisSupportedOn(ElementType elementType) Checks if this annotation is supported on the supplied element type.booleanisSupportedOn(String elementType) Checks if this annotation is supported on the supplied element type.toString()Methods inherited from interface AnnotationDescription
getAnnotationType, getValue, prepare
-
Field Details
-
DEFAULT_TARGET
An array containing all element types that are a legal annotation target when such a target is not specified explicitly. -
RETENTION_VALUE
A description of theRetention.value()method. -
TARGET_VALUE
A description of theTarget.value()method.
-
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
getValue
Returns a value of this annotation.- Specified by:
getValuein interfaceAnnotationDescription- Parameters:
property- The name of the property being accessed.- Returns:
- The value for the supplied property.
-
getRetention
Returns this annotation's retention policy.- Specified by:
getRetentionin interfaceAnnotationDescription- Returns:
- This annotation's retention policy.
-
getElementTypes
Returns a set of allElementTypes that can declare this annotation.- Specified by:
getElementTypesin interfaceAnnotationDescription- Returns:
- A set of all element types that can declare this annotation.
-
isSupportedOn
Checks if this annotation is supported on the supplied element type.- Specified by:
isSupportedOnin interfaceAnnotationDescription- Parameters:
elementType- The element type to check.- Returns:
trueif the supplied element type is supported by this annotation.
-
isSupportedOn
Checks if this annotation is supported on the supplied element type.- Specified by:
isSupportedOnin interfaceAnnotationDescription- Parameters:
elementType- The element type to check.- Returns:
trueif the supplied element type is supported by this annotation.
-
isInherited
public boolean isInherited()Checks if this annotation is inherited.- Specified by:
isInheritedin interfaceAnnotationDescription- Returns:
trueif this annotation is inherited.- See Also:
-
isDocumented
public boolean isDocumented()Checks if this annotation is documented.- Specified by:
isDocumentedin interfaceAnnotationDescription- Returns:
trueif this annotation is documented.- See Also:
-
hashCode
-
equals
-
toString
-