| Modifier and Type | Field and Description |
|---|---|
| private final CodeItem | code
|
| private final CstMethodRef | method
|
| Access | Constructor and Description |
|---|---|
| public | EncodedMethod(CstMethodRef
non-null; constant for the methodaccess flags accessFlags, DalvCode null-ok; code for the method, if it is neither
abstract nor nativenon-null; list of possibly-thrown exceptions,
just used in generating debugging output (listings)Constructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addContents(DexFile
non-null; the file to populateImplements abstract org. DexFile with items from within this instance.
|
| public int | compareTo(EncodedMethod
the object to be compared. other)Implements java. |
| public void | debugPrint(PrintWriter
non-null; where to dumpwhether to be verbose with the output verbose)Implements abstract org. |
| public int | encode(DexFile
non-null; file this instance is part ofnon-null; where to write to>= 0; the previous member index value encoded, or
0 if this is the first element to encode>= 0; sequence number of this instance for
annotation purposesImplements abstract org. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public final CstString | getName()
Implements abstract org. |
| public final CstMethodRef | |
| public final String | toHuman()
Implements org. |
| public String |
| code | back to summary |
|---|---|
| private final CodeItem code
| |
| method | back to summary |
|---|---|
| private final CstMethodRef method
| |
| EncodedMethod | back to summary |
|---|---|
| public EncodedMethod(CstMethodRef method, int accessFlags, DalvCode code, TypeList throwsList) Constructs an instance.
| |
| addContents | back to summary |
|---|---|
| public void addContents(DexFile file) Implements abstract org. Doc from org. Populates a | |
| compareTo | back to summary |
|---|---|
| public int compareTo(EncodedMethod other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that 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).
| |
| debugPrint | back to summary |
|---|---|
| public void debugPrint(PrintWriter out, boolean verbose) Implements abstract org. Doc from org. Does a human-friendly dump of this instance.
| |
| encode | back to summary |
|---|---|
| public int encode(DexFile file, AnnotatedOutput out, int lastIndex, int dumpSeq) Implements abstract org. Doc from org. Encodes this instance to the given output.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getName | back to summary |
|---|---|
| public final CstString getName() Implements abstract org. Doc from org. Gets the name. | |
| getRef | back to summary |
|---|---|
| public final CstMethodRef getRef() Gets the constant for the method.
| |
| toHuman | back to summary |
|---|---|
| public final String toHuman() Implements org. Doc from org. Return the "human" string form of this instance. This is
generally less "debuggy" than
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |