public final class FieldIdsSection extends MemberIdsSection
.dex file.| Constructor and Description |
|---|
FieldIdsSection(DexFile file)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
IndexedItem |
get(Constant cst)
Gets the item corresponding to the given
Constant. |
int |
indexOf(CstFieldRef ref)
Gets the index of the given reference, which must have been added
to this instance.
|
FieldIdItem |
intern(CstFieldRef field)
Interns an element into this instance.
|
java.util.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.
|
orderItemsgetAbsoluteItemOffset, prepare0, writeSize, writeTo0align, getAbsoluteOffset, getAlignment, getFile, getFileOffset, getName, prepare, setFileOffset, throwIfNotPrepared, throwIfPrepared, validateAlignment, writeTopublic FieldIdsSection(DexFile file)
file - non-null; file that this instance is part ofpublic java.util.Collection<? extends Item> items()
public 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 fornon-null; the corresponding item found in this instancepublic void writeHeaderPart(AnnotatedOutput out)
out - non-null; where to writepublic FieldIdItem intern(CstFieldRef field)
field - non-null; the reference to internnon-null; the interned referencepublic int indexOf(CstFieldRef ref)
ref - non-null; the reference to look up>= 0; the reference's indexCopyright © 2020. All Rights Reserved.