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
- 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 net.bytebuddy.description.annotation.AnnotationDescription
AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T extends Annotation>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S extends Annotation>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S extends Annotation>, AnnotationDescription.RenderingDispatcher
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.description.annotation.AnnotationDescription
UNDEFINED
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Set<ElementType>
getElementTypes()
Returns a set of allElementType
s that can declare this annotation.RetentionPolicy
getRetention()
Returns this annotation's retention policy.int
hashCode()
boolean
isDocumented()
Checks if this annotation is documented.boolean
isInherited()
Checks if this annotation is inherited.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.annotation.AnnotationDescription
getAnnotationType, getValue, prepare
-
-
-
-
Method Detail
-
getRetention
public RetentionPolicy getRetention()
Returns this annotation's retention policy.- Specified by:
getRetention
in interfaceAnnotationDescription
- Returns:
- This annotation's retention policy.
-
getElementTypes
public Set<ElementType> getElementTypes()
Returns a set of allElementType
s that can declare this annotation.- Specified by:
getElementTypes
in interfaceAnnotationDescription
- Returns:
- A set of all element types that can declare this annotation.
-
isInherited
public boolean isInherited()
Checks if this annotation is inherited.- Specified by:
isInherited
in interfaceAnnotationDescription
- Returns:
true
if this annotation is inherited.- See Also:
Inherited
-
isDocumented
public boolean isDocumented()
Checks if this annotation is documented.- Specified by:
isDocumented
in interfaceAnnotationDescription
- Returns:
true
if this annotation is documented.- See Also:
Documented
-
-