FileDocCategorySizeDatePackage
EncodedMember.javaAPI DocAndroid 1.5 API2569Wed May 06 22:41:02 BST 2009com.android.dx.dex.file

EncodedMember

public abstract class EncodedMember extends Object implements com.android.dx.util.ToHuman
Representation of a member (field or method) of a class, for the purposes of encoding it inside a {@link ClassDataItem}.

Fields Summary
private final int
accessFlags
access flags
Constructors Summary
public EncodedMember(int accessFlags)
Constructs an instance.

param
accessFlags access flags for the member

        this.accessFlags = accessFlags;
    
Methods Summary
public abstract voidaddContents(DexFile file)
Populates a {@link DexFile} with items from within this instance.

param
file non-null; the file to populate

public abstract voiddebugPrint(java.io.PrintWriter out, boolean verbose)
Does a human-friendly dump of this instance.

param
out non-null; where to dump
param
verbose whether to be verbose with the output

public abstract intencode(DexFile file, com.android.dx.util.AnnotatedOutput out, int lastIndex, int dumpSeq)
Encodes this instance to the given output.

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

public final intgetAccessFlags()
Gets the access flags.

return
the access flags

        return accessFlags;
    
public abstract com.android.dx.rop.cst.CstUtf8getName()
Gets the name.

return
non-null; the name