|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.dex.file.Item
com.android.dx.dex.file.IndexedItem
public abstract class IndexedItem
An item in a Dalvik file which is referenced by index.
| Constructor Summary | |
|---|---|
IndexedItem()
Constructs an instance. |
|
| Method Summary | |
|---|---|
int |
getIndex()
Gets the item index. |
boolean |
hasIndex()
Gets whether or not this instance has been assigned an index. |
String |
indexString()
Gets the index of this item as a string, suitable for including in annotations. |
void |
setIndex(int index)
Sets the item index. |
| Methods inherited from class com.android.dx.dex.file.Item |
|---|
addContents, itemType, typeName, writeSize, writeTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexedItem()
| Method Detail |
|---|
public final boolean hasIndex()
true iff this instance has been assigned an indexpublic final int getIndex()
>= 0; the index
RuntimeException - thrown if the item index is not yet assignedpublic final void setIndex(int index)
RuntimeException if
called a second (or subsequent) time.
index - >= 0; the item indexpublic final String indexString()
non-null; the index string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||