Interface IDexAnnotationsDirectory


public interface IDexAnnotationsDirectory
This interface is used to represent directories of annotations for a class item. A directory is associated to a class and contains the annotations for the class itself, its fields and methods, as well as all methods parameters.
  • Method Details

    • getClassAnnotations

      List<IDexAnnotationItem> getClassAnnotations()
      Get annotation items for this class.
      Returns:
      the list of annotation items, possibly empty
    • getFieldsAnnotations

      List<IDexAnnotationForField> getFieldsAnnotations()
      Get the list of fields annotations.
      Returns:
      the list of fields annotations, possibly empty
    • getMethodsAnnotations

      List<IDexAnnotationForMethod> getMethodsAnnotations()
      Get the list of methods annotations.
      Returns:
      the list of methods annotations, possibly empty
    • getParametersAnnotations

      List<IDexAnnotationForParameter> getParametersAnnotations()
      Get the list of parameters annotations.
      Returns:
      the list of parameters annotations, possibly empty
    • getFieldAnnotations

      List<IDexAnnotationItem> getFieldAnnotations(int fieldIndex)
      Convenience method to retrieve the list of field annotations for a field of the class that this directory belongs to.
      Parameters:
      fieldIndex -
      Returns:
      may be empty
    • getMethodAnnotations

      List<IDexAnnotationItem> getMethodAnnotations(int methodIndex)
      Convenience method to retrieve the list of method annotations for a method of the class that this directory belongs to.
      Parameters:
      methodIndex -
      Returns:
      may be empty
    • getParametersAnnotations

      List<List<IDexAnnotationItem>> getParametersAnnotations(int methodIndex)
      Convenience method to retrieve the list of parameters annotations for a method of the class that this directory belongs to.
      Parameters:
      methodIndex -
      Returns:
      may be empty