Class ParameterAnnotationStruct

java.lang.Object
com.android.dx.dex.file.ParameterAnnotationStruct
All Implemented Interfaces:
ToHuman, Comparable<ParameterAnnotationStruct>

public final class ParameterAnnotationStruct extends Object implements ToHuman, Comparable<ParameterAnnotationStruct>
Association of a method and its parameter annotations.
  • Constructor Details

    • ParameterAnnotationStruct

      public ParameterAnnotationStruct(CstMethodRef method, AnnotationsList annotationsList, DexFile dexFile)
      Constructs an instance.
      Parameters:
      method - non-null; the method in question
      annotationsList - non-null; the associated annotations list
      dexFile - non-null; dex output
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(ParameterAnnotationStruct other)
      Specified by:
      compareTo in interface Comparable<ParameterAnnotationStruct>
    • addContents

      public void addContents(DexFile file)
    • writeTo

      public void writeTo(DexFile file, AnnotatedOutput out)
    • toHuman

      public String toHuman()
      Return the "human" string form of this instance. This is generally less "debuggy" than toString().
      Specified by:
      toHuman in interface ToHuman
      Returns:
      non-null; the human string form
    • getMethod

      public CstMethodRef getMethod()
      Gets the method this item is for.
      Returns:
      non-null; the method
    • getAnnotationsList

      public AnnotationsList getAnnotationsList()
      Gets the associated annotations list.
      Returns:
      non-null; the annotations list