Interface BasicAnnotation

All Known Subinterfaces:
Annotation, AnnotationEncodedValue
All Known Implementing Classes:
AnnotationRewriter.RewrittenAnnotation, BaseAnnotation, BaseAnnotationEncodedValue, BuilderAnnotation, BuilderEncodedValues.BuilderAnnotationEncodedValue, DexBackedAnnotation, DexBackedAnnotationEncodedValue, EncodedValueRewriter.RewrittenAnnotationEncodedValue, ImmutableAnnotation, ImmutableAnnotationEncodedValue

public interface BasicAnnotation
This represents a basic annotation, and serves as a common superclass for Annotation and AnnotationEncodedValue
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets a set of the name/value elements associated with this annotation.
    Gets the type of this annotation.
  • Method Details

    • getType

      @Nonnull String getType()
      Gets the type of this annotation. This will be the type descriptor of the class that defines this annotation.
      Returns:
      The type of this annotation
    • getElements

      @Nonnull Set<? extends AnnotationElement> getElements()
      Gets a set of the name/value elements associated with this annotation. The elements in the returned set will be unique with respect to the element name.
      Returns:
      A set of AnnotationElements