public final class EncodedField extends EncodedMember implements java.lang.Comparable<EncodedField>
| Constructor and Description |
|---|
EncodedField(CstFieldRef field,
int accessFlags)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
int |
compareTo(EncodedField other) |
void |
debugPrint(java.io.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(java.lang.Object other) |
CstString |
getName()
Gets the name.
|
CstFieldRef |
getRef()
Gets the constant for the field.
|
int |
hashCode() |
java.lang.String |
toHuman()
Return the "human" string form of this instance.
|
java.lang.String |
toString() |
getAccessFlagspublic EncodedField(CstFieldRef field, int accessFlags)
field - non-null; constant for the fieldaccessFlags - access flagspublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.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 java.lang.Comparable<EncodedField>public java.lang.String toString()
toString in class java.lang.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 java.lang.String toHuman()
toString().public void debugPrint(java.io.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 constantpublic 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 encodedCopyright © 2020. All Rights Reserved.