|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.dex.file.Section
com.android.dx.dex.file.UniformItemSection
com.android.dx.dex.file.MemberIdsSection
com.android.dx.dex.file.MethodIdsSection
public final class MethodIdsSection
Method refs list section of a .dex file.
| Constructor Summary | |
|---|---|
MethodIdsSection(DexFile file)
Constructs an instance. |
|
| Method Summary | |
|---|---|
IndexedItem |
get(Constant cst)
Gets the item corresponding to the given Constant. |
int |
indexOf(CstBaseMethodRef ref)
Gets the index of the given reference, which must have been added to this instance. |
MethodIdItem |
intern(CstBaseMethodRef method)
Interns an element into this instance. |
Collection<? extends Item> |
items()
Gets the collection of all the items in this section. |
void |
writeHeaderPart(AnnotatedOutput out)
Writes the portion of the file header that refers to this instance. |
| Methods inherited from class com.android.dx.dex.file.MemberIdsSection |
|---|
orderItems |
| Methods inherited from class com.android.dx.dex.file.UniformItemSection |
|---|
getAbsoluteItemOffset, prepare0, writeSize, writeTo0 |
| Methods inherited from class com.android.dx.dex.file.Section |
|---|
align, getAbsoluteOffset, getAlignment, getFile, getFileOffset, getName, prepare, setFileOffset, throwIfNotPrepared, throwIfPrepared, validateAlignment, writeTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodIdsSection(DexFile file)
file - non-null; file that this instance is part of| Method Detail |
|---|
public Collection<? extends Item> items()
items in class Sectionnon-null; the itemspublic IndexedItem get(Constant cst)
Constant. This
will throw an exception if the constant is not found, including
if this instance isn't the sort that maps constants to IndexedItem instances.
get in class UniformItemSectioncst - non-null; constant to look for
non-null; the corresponding item found in this instancepublic void writeHeaderPart(AnnotatedOutput out)
out - non-null; where to writepublic MethodIdItem intern(CstBaseMethodRef method)
method - non-null; the reference to intern
non-null; the interned referencepublic int indexOf(CstBaseMethodRef ref)
ref - non-null; the reference to look up
>= 0; the reference's index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||