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.
  • Field Details

  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • getValue

      public AnnotationValue<?,?> getValue(String property)
      Returns a value of this annotation.
      Specified by:
      getValue in interface AnnotationDescription
      Parameters:
      property - The name of the property being accessed.
      Returns:
      The value for the supplied property.
    • getRetention

      public RetentionPolicy getRetention()
      Returns this annotation's retention policy.
      Specified by:
      getRetention in interface AnnotationDescription
      Returns:
      This annotation's retention policy.
    • getElementTypes

      public Set<ElementType> getElementTypes()
      Returns a set of all ElementTypes that can declare this annotation.
      Specified by:
      getElementTypes in interface AnnotationDescription
      Returns:
      A set of all element types that can declare this annotation.
    • isSupportedOn

      public boolean isSupportedOn(ElementType elementType)
      Checks if this annotation is supported on the supplied element type.
      Specified by:
      isSupportedOn in interface AnnotationDescription
      Parameters:
      elementType - The element type to check.
      Returns:
      true if the supplied element type is supported by this annotation.
    • isSupportedOn

      public boolean isSupportedOn(String elementType)
      Checks if this annotation is supported on the supplied element type.
      Specified by:
      isSupportedOn in interface AnnotationDescription
      Parameters:
      elementType - The element type to check.
      Returns:
      true if the supplied element type is supported by this annotation.
    • isInherited

      public boolean isInherited()
      Checks if this annotation is inherited.
      Specified by:
      isInherited in interface AnnotationDescription
      Returns:
      true if this annotation is inherited.
      See Also:
    • isDocumented

      public boolean isDocumented()
      Checks if this annotation is documented.
      Specified by:
      isDocumented in interface AnnotationDescription
      Returns:
      true if this annotation is documented.
      See Also:
    • hashCode

      @Enhance("hashCode") public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@MaybeNull Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object