public abstract class MemberIdItem extends IdItem
| Constructor and Description |
|---|
MemberIdItem(CstMemberRef cst)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
CstMemberRef |
getRef()
Gets the member constant.
|
protected abstract int |
getTypoidIdx(DexFile file)
Returns the index of the type-like thing associated with
this item, in order that it may be written out.
|
protected abstract java.lang.String |
getTypoidName()
Returns the field name of the type-like thing associated with
this item, for listing-generating purposes.
|
int |
writeSize()
Gets the size of this instance when written, in bytes.
|
void |
writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
getDefiningClassgetIndex, hasIndex, indexString, setIndexpublic MemberIdItem(CstMemberRef cst)
cst - non-null; the constant for the memberpublic int writeSize()
public void addContents(DexFile file)
DexFile with 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.
addContents in class IdItemfile - non-null; the file to populatepublic final void writeTo(DexFile file, AnnotatedOutput out)
DexFile to 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.protected abstract int getTypoidIdx(DexFile file)
file - non-null; the file being writtenprotected abstract java.lang.String getTypoidName()
non-null; the name in questionpublic final CstMemberRef getRef()
non-null; the constantCopyright © 2020. All Rights Reserved.