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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddContents(DexFile file) Populates aDexFilewith items from within this instance.abstract voiddebugPrint(PrintWriter out, boolean verbose) Does a human-friendly dump of this instance.abstract intencode(DexFile file, AnnotatedOutput out, int lastIndex, int dumpSeq) Encodes this instance to the given output.final intGets the access flags.abstract CstStringgetName()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
-
debugPrint
Does a human-friendly dump of this instance.- Parameters:
out-non-null;where to dumpverbose- whether to be verbose with the output
-
addContents
-
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, or0if 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
-