Class CallSiteIdsSection
java.lang.Object
com.android.dx.dex.file.Section
com.android.dx.dex.file.UniformItemSection
com.android.dx.dex.file.CallSiteIdsSection
A section in the DEX file for call site identifiers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the item corresponding to the givenConstant.voidintern(CstCallSiteRef cstRef) Interns a call site into this instance.Collection<? extends Item> items()Gets the collection of all the items in this section.protected voidAlters or picks the order for items in this instance if desired, so that subsequent calls toSection.items()will yield a so-ordered collection.Methods inherited from class UniformItemSection
getAbsoluteItemOffset, prepare0, writeSize, writeTo0Methods inherited from class Section
align, getAbsoluteOffset, getAlignment, getFile, getFileOffset, getName, prepare, setFileOffset, throwIfNotPrepared, throwIfPrepared, validateAlignment, writeTo
-
Constructor Details
-
CallSiteIdsSection
Constructs an instance.- Parameters:
dexFile-non-null;file that this instance is part of
-
-
Method Details
-
get
Gets the item corresponding to the givenConstant. This will throw an exception if the constant is not found, including if this instance isn't the sort that maps constants toIndexedIteminstances.- Specified by:
getin classUniformItemSection- Parameters:
cst-non-null;constant to look for- Returns:
non-null;the corresponding item found in this instance
-
orderItems
protected void orderItems()Alters or picks the order for items in this instance if desired, so that subsequent calls toSection.items()will yield a so-ordered collection. If the items in this instance are indexed, then this method should also assign indices.- Specified by:
orderItemsin classUniformItemSection
-
items
Gets the collection of all the items in this section. It is not valid to attempt to change the returned list. -
intern
Interns a call site into this instance. This method is synchronized as it is called during class file translation which runs concurrently on a per class basis.- Parameters:
cstRef-
-