|
||||||||||
| 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.EncodedField
public final class EncodedField
Representation of a field of a class, of any sort.
| Constructor Summary | |
|---|---|
EncodedField(CstFieldRef field,
int accessFlags)
Constructs an instance. |
|
| Method Summary | |
|---|---|
void |
addContents(DexFile file)
Populates a DexFile with items from within this instance. |
int |
compareTo(EncodedField 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. |
CstFieldRef |
getRef()
Gets the constant for the field. |
int |
hashCode()
|
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, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EncodedField(CstFieldRef field,
int accessFlags)
field - non-null; constant for the fieldaccessFlags - access flags| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic int compareTo(EncodedField 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<EncodedField>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 CstString getName()
getName in class EncodedMembernon-null; the namepublic String toHuman()
toString().
toHuman in interface ToHumannon-null; the human string form
public void debugPrint(PrintWriter out,
boolean verbose)
debugPrint in class EncodedMemberout - non-null; where to dumpverbose - whether to be verbose with the outputpublic CstFieldRef 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 | |||||||||