Interface Annotatable

All Known Subinterfaces:
ClassDef, Field, Member, Method
All Known Implementing Classes:
BuilderClassDef, BuilderField, BuilderMethod, ClassDefRewriter.RewrittenClassDef, ClassProto.ReparentedMethod, DexBackedClassDef, DexBackedField, DexBackedMethod, FieldRewriter.RewrittenField, ImmutableClassDef, ImmutableField, ImmutableMethod, MethodRewriter.RewrittenMethod, PoolClassDef, PoolMethod, ReflectionClassDef, ReflectionConstructor, ReflectionField, ReflectionMethod

public interface Annotatable
This class represents an object that can have Annotations applied to it
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<? extends Annotation>
    Gets a set of the annotations that are applied to this object.
  • Method Details

    • getAnnotations

      @Nonnull Set<? extends Annotation> getAnnotations()
      Gets a set of the annotations that are applied to this object. The annotations in the returned set are guaranteed to have unique types.
      Returns:
      A set of the annotations that are applied to this object