Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.dex.file

public abstract Class EncodedMember

extends Object
implements ToHuman
Class Inheritance
All Implemented Interfaces
org.droidparts.dexmaker.dx.util.ToHuman
Known Direct Subclasses
org.droidparts.dexmaker.dx.dex.file.EncodedMethod, org.droidparts.dexmaker.dx.dex.file.EncodedField
Imports
org.droidparts.dexmaker.dx.rop.cst.CstString, org.droidparts.dexmaker.dx.util.AnnotatedOutput, .ToHuman, java.io.PrintWriter

Representation of a member (field or method) of a class, for the purposes of encoding it inside a ClassDataItem.

Field Summary

Modifier and TypeField and Description
private final int
accessFlags

access flags

Constructor Summary

AccessConstructor and Description
public
EncodedMember(int
access flags for the member
accessFlags
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public abstract void
addContents(DexFile
non-null; the file to populate
file
)

Populates a DexFile with items from within this instance.

public abstract void
debugPrint(PrintWriter
non-null; where to dump
out
,
boolean
whether to be verbose with the output
verbose
)

Does a human-friendly dump of this instance.

public abstract int

Returns:

>= 0; the member index value that was encoded
encode
(DexFile
non-null; file this instance is part of
file
,
AnnotatedOutput
non-null; where to write to
out
,
int
>= 0; the previous member index value encoded, or 0 if this is the first element to encode
lastIndex
,
int
>= 0; sequence number of this instance for annotation purposes
dumpSeq
)

Encodes this instance to the given output.

public final int

Returns:

the access flags
getAccessFlags
()

Gets the access flags.

public abstract CstString

Returns:

non-null; the name
getName
()

Gets the name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessFlagsback to summary
private final int accessFlags

access flags

Constructor Detail

EncodedMemberback to summary
public EncodedMember(int accessFlags)

Constructs an instance.

Parameters
accessFlags:int

access flags for the member

Method Detail

addContentsback to summary
public abstract void addContents(DexFile file)

Populates a DexFile with items from within this instance.

Parameters
file:DexFile

non-null; the file to populate

debugPrintback to summary
public abstract void debugPrint(PrintWriter out, boolean verbose)

Does a human-friendly dump of this instance.

Parameters
out:PrintWriter

non-null; where to dump

verbose:boolean

whether to be verbose with the output

encodeback to summary
public abstract int encode(DexFile file, AnnotatedOutput out, int lastIndex, int dumpSeq)

Encodes this instance to the given output.

Parameters
file:DexFile

non-null; file this instance is part of

out:AnnotatedOutput

non-null; where to write to

lastIndex:int

>= 0; the previous member index value encoded, or 0 if this is the first element to encode

dumpSeq:int

>= 0; sequence number of this instance for annotation purposes

Returns:int

>= 0; the member index value that was encoded

getAccessFlagsback to summary
public final int getAccessFlags()

Gets the access flags.

Returns:int

the access flags

getNameback to summary
public abstract CstString getName()

Gets the name.

Returns:CstString

non-null; the name