com.android.dx.dex.file
Class ParameterAnnotationStruct

java.lang.Object
  extended by 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 Summary
ParameterAnnotationStruct(CstMethodRef method, AnnotationsList annotationsList, DexFile dexFile)
          Constructs an instance.
 
Method Summary
 void addContents(DexFile file)
          
 int compareTo(ParameterAnnotationStruct other)
          
 boolean equals(Object other)
          
 AnnotationsList getAnnotationsList()
          Gets the associated annotations list.
 CstMethodRef getMethod()
          Gets the method this item is for.
 int hashCode()
          
 String toHuman()
          Return the "human" string form of this instance.
 void writeTo(DexFile file, AnnotatedOutput out)
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2015. All rights reserved.