|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.dex.file.EncodedMember
com.android.dx.dex.file.EncodedMethod
public final class EncodedMethod
Class that representats a method of a class.
| Constructor Summary | |
|---|---|
EncodedMethod(CstMethodRef method,
int accessFlags,
DalvCode code,
TypeList throwsList)
Constructs an instance. |
|
| Method Summary | |
|---|---|
void |
addContents(DexFile file)
Populates a DexFile with items from within this instance. |
int |
compareTo(EncodedMethod other)
|
void |
debugPrint(PrintWriter out,
boolean verbose)
Does a human-friendly dump of this instance. |
int |
encode(DexFile file,
AnnotatedOutput out,
int lastIndex,
int dumpSeq)
Encodes this instance to the given output. |
boolean |
equals(Object other)
|
CstString |
getName()
Gets the name. |
CstMethodRef |
getRef()
Gets the constant for the method. |
String |
toHuman()
Return the "human" string form of this instance. |
String |
toString()
|
| Methods inherited from class com.android.dx.dex.file.EncodedMember |
|---|
getAccessFlags |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EncodedMethod(CstMethodRef method,
int accessFlags,
DalvCode code,
TypeList throwsList)
method - non-null; constant for the methodaccessFlags - access flagscode - null-ok; code for the method, if it is neither
abstract nor nativethrowsList - non-null; list of possibly-thrown exceptions,
just used in generating debugging output (listings)| Method Detail |
|---|
public boolean equals(Object other)
equals in class Objectpublic int compareTo(EncodedMethod other)
Note: This compares the method constants only, ignoring any associated code, because it should never be the case that two different items with the same method constant ever appear in the same list (or same file, even).
compareTo in interface Comparable<EncodedMethod>public String toString()
toString in class Objectpublic void addContents(DexFile file)
DexFile with items from within this instance.
addContents in class EncodedMemberfile - non-null; the file to populatepublic final String toHuman()
toString().
toHuman in interface ToHumannon-null; the human string formpublic final CstString getName()
getName in class EncodedMembernon-null; the name
public void debugPrint(PrintWriter out,
boolean verbose)
debugPrint in class EncodedMemberout - non-null; where to dumpverbose - whether to be verbose with the outputpublic final CstMethodRef getRef()
non-null; the constant
public int encode(DexFile file,
AnnotatedOutput out,
int lastIndex,
int dumpSeq)
encode in class EncodedMemberfile - non-null; file this instance is part ofout - non-null; where to write tolastIndex - >= 0; the previous member index value encoded, or
0 if this is the first element to encodedumpSeq - >= 0; sequence number of this instance for
annotation purposes
>= 0; the member index value that was encoded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||