FileDocCategorySizeDatePackage
EncodedMember.javaAPI DocAndroid 5.1 API2619Thu Mar 12 22:18:30 GMT 2015com.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 {@code 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 {@code 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 {@code non-null;} file this instance is part of
param
out {@code non-null;} where to write to
param
lastIndex {@code >= 0;} the previous member index value encoded, or {@code 0} if this is the first element to encode
param
dumpSeq {@code >= 0;} sequence number of this instance for annotation purposes
return
{@code >= 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.CstStringgetName()
Gets the name.

return
{@code non-null;} the name