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 Summary
Modifier and TypeMethodDescriptionGet annotation items for this class.getFieldAnnotations
(int fieldIndex) Convenience method to retrieve the list of field annotations for a field of the class that this directory belongs to.Get the list of fields annotations.getMethodAnnotations
(int methodIndex) Convenience method to retrieve the list of method annotations for a method of the class that this directory belongs to.Get the list of methods annotations.Get the list of parameters annotations.getParametersAnnotations
(int methodIndex) Convenience method to retrieve the list of parameters annotations for a method of the class that this directory belongs to.
-
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
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
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
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
-