Class AnnotationDescription.AbstractBase
- java.lang.Object
-
- net.bytebuddy.description.annotation.AnnotationDescription.AbstractBase
-
- All Implemented Interfaces:
AnnotationDescription
- Direct Known Subclasses:
AnnotationDescription.AbstractBase.ForPrepared,AnnotationDescription.Latent
- Enclosing interface:
- AnnotationDescription
public abstract static class AnnotationDescription.AbstractBase extends java.lang.Object implements AnnotationDescription
An adapter implementation of an annotation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotationDescription.AbstractBase.ForPrepared<S extends java.lang.annotation.Annotation>An abstract implementation of a loadable annotation description.-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationDescription
AnnotationDescription.AbstractBase, AnnotationDescription.AnnotationInvocationHandler<T extends java.lang.annotation.Annotation>, AnnotationDescription.Builder, AnnotationDescription.ForLoadedAnnotation<S extends java.lang.annotation.Annotation>, AnnotationDescription.Latent, AnnotationDescription.Loadable<S extends java.lang.annotation.Annotation>
-
-
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 booleanequals(java.lang.Object other)java.util.Set<java.lang.annotation.ElementType>getElementTypes()Returns a set of allElementTypes that can declare this annotation.java.lang.annotation.RetentionPolicygetRetention()Returns this annotation's retention policy.inthashCode()booleanisDocumented()Checks if this annotation is documented.booleanisInherited()Checks if this annotation is inherited.java.lang.StringtoString()-
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 java.lang.annotation.RetentionPolicy getRetention()
Description copied from interface:AnnotationDescriptionReturns this annotation's retention policy.- Specified by:
getRetentionin interfaceAnnotationDescription- Returns:
- This annotation's retention policy.
-
getElementTypes
public java.util.Set<java.lang.annotation.ElementType> getElementTypes()
Description copied from interface:AnnotationDescriptionReturns 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.
-
isInherited
public boolean isInherited()
Description copied from interface:AnnotationDescriptionChecks if this annotation is inherited.- Specified by:
isInheritedin interfaceAnnotationDescription- Returns:
trueif this annotation is inherited.- See Also:
Inherited
-
isDocumented
public boolean isDocumented()
Description copied from interface:AnnotationDescriptionChecks if this annotation is documented.- Specified by:
isDocumentedin interfaceAnnotationDescription- Returns:
trueif this annotation is documented.- See Also:
Documented
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-