Class CallSiteIdItem
java.lang.Object
com.android.dx.dex.file.Item
com.android.dx.dex.file.IndexedItem
com.android.dx.dex.file.CallSiteIdItem
- All Implemented Interfaces:
Comparable<CallSiteIdItem>
Representation of a call site reference in a DEX file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContents(DexFile file) Populates aDexFilewith items from within this instance.intcompareTo(CallSiteIdItem other) itemType()Returns the item type for this instance.intGets the size of this instance when written, in bytes.voidwriteTo(DexFile file, AnnotatedOutput out) Writes the representation of this instance to the given data section, using the givenDexFileto look things up as needed.Methods inherited from class IndexedItem
getIndex, hasIndex, indexString, setIndex
-
Constructor Details
-
CallSiteIdItem
Constructs an instance.- Parameters:
invokeDynamicRef-non-null;The call site to represent in the DEX file.
-
-
Method Details
-
itemType
-
writeSize
-
addContents
Populates aDexFilewith items from within this instance. This will not add an item to the file for this instance itself (which should have been done by whatever refers to this instance).Note: Subclasses must override this to do something appropriate.
- Specified by:
addContentsin classItem- Parameters:
file-non-null;the file to populate
-
writeTo
Writes the representation of this instance to the given data section, using the givenDexFileto look things up as needed. If this instance keeps track of its offset, then this method will note the written offset and will also throw an exception if this instance has already been written. -
compareTo
- Specified by:
compareToin interfaceComparable<CallSiteIdItem>
-