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 TypeMethodDescriptionSet<? extends AnnotationElement> Gets a set of the name/value elements associated with this annotation.getType()Gets the type of this annotation.
-
Method Details
-
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
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
-