public interface

IDexAnnotationsDirectory

com.pnfsoftware.jeb.core.units.code.android.dex.IDexAnnotationsDirectory

Class Overview

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.

Summary

Public Methods
abstract List<IDexAnnotationItem> getClassAnnotations()
Get annotation items for this class.
abstract 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.
abstract List<IDexAnnotationForField> getFieldsAnnotations()
Get the list of fields annotations.
abstract 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.
abstract List<IDexAnnotationForMethod> getMethodsAnnotations()
Get the list of methods annotations.
abstract 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.
abstract List<IDexAnnotationForParameter> getParametersAnnotations()
Get the list of parameters annotations.

Public Methods

public abstract List<IDexAnnotationItem> getClassAnnotations ()

Get annotation items for this class.

Returns
  • the list of annotation items, possibly empty

public abstract 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.

Returns
  • may be empty

public abstract List<IDexAnnotationForField> getFieldsAnnotations ()

Get the list of fields annotations.

Returns
  • the list of fields annotations, possibly empty

public abstract 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.

Returns
  • may be empty

public abstract List<IDexAnnotationForMethod> getMethodsAnnotations ()

Get the list of methods annotations.

Returns
  • the list of methods annotations, possibly empty

public abstract 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.

Returns
  • may be empty

public abstract List<IDexAnnotationForParameter> getParametersAnnotations ()

Get the list of parameters annotations.

Returns
  • the list of parameters annotations, possibly empty