Package com.android.dx.dex.file
Class EncodedMember
java.lang.Object
com.android.dx.dex.file.EncodedMember
- All Implemented Interfaces:
ToHuman
- Direct Known Subclasses:
EncodedField
,EncodedMethod
Representation of a member (field or method) of a class, for the
purposes of encoding it inside a
ClassDataItem
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addContents
(DexFile file) Populates aDexFile
with items from within this instance.abstract void
debugPrint
(PrintWriter out, boolean verbose) Does a human-friendly dump of this instance.abstract int
encode
(DexFile file, AnnotatedOutput out, int lastIndex, int dumpSeq) Encodes this instance to the given output.final int
Gets the access flags.abstract CstString
getName()
Gets the name.
-
Constructor Details
-
EncodedMember
public EncodedMember(int accessFlags) Constructs an instance.- Parameters:
accessFlags
- access flags for the member
-
-
Method Details
-
getAccessFlags
public final int getAccessFlags()Gets the access flags.- Returns:
- the access flags
-
getName
Gets the name.- Returns:
non-null;
the name
-
debugPrint
Does a human-friendly dump of this instance.- Parameters:
out
-non-null;
where to dumpverbose
- whether to be verbose with the output
-
addContents
Populates aDexFile
with items from within this instance.- Parameters:
file
-non-null;
the file to populate
-
encode
Encodes this instance to the given output.- Parameters:
file
-non-null;
file this instance is part ofout
-non-null;
where to write tolastIndex
->= 0;
the previous member index value encoded, or0
if this is the first element to encodedumpSeq
->= 0;
sequence number of this instance for annotation purposes- Returns:
>= 0;
the member index value that was encoded
-