FileDocCategorySizeDatePackage
StdMember.javaAPI DocAndroid 5.1 API3065Thu Mar 12 22:18:30 GMT 2015com.android.dx.cf.iface

StdMember

public abstract class StdMember extends Object implements Member
Standard implementation of {@link Member}, which directly stores all the associated data.

Fields Summary
private final com.android.dx.rop.cst.CstType
definingClass
{@code non-null;} the defining class
private final int
accessFlags
access flags
private final com.android.dx.rop.cst.CstNat
nat
{@code non-null;} member name and type
private final AttributeList
attributes
{@code non-null;} list of associated attributes
Constructors Summary
public StdMember(com.android.dx.rop.cst.CstType definingClass, int accessFlags, com.android.dx.rop.cst.CstNat nat, AttributeList attributes)
Constructs an instance.

param
definingClass {@code non-null;} the defining class
param
accessFlags access flags
param
nat {@code non-null;} member name and type (descriptor)
param
attributes {@code non-null;} list of associated attributes

        if (definingClass == null) {
            throw new NullPointerException("definingClass == null");
        }

        if (nat == null) {
            throw new NullPointerException("nat == null");
        }

        if (attributes == null) {
            throw new NullPointerException("attributes == null");
        }

        this.definingClass = definingClass;
        this.accessFlags = accessFlags;
        this.nat = nat;
        this.attributes = attributes;
    
Methods Summary
public final intgetAccessFlags()
{@inheritDoc}

        return accessFlags;
    
public final AttributeListgetAttributes()
{@inheritDoc}

        return attributes;
    
public final com.android.dx.rop.cst.CstTypegetDefiningClass()
{@inheritDoc}

        return definingClass;
    
public final com.android.dx.rop.cst.CstStringgetDescriptor()
{@inheritDoc}

        return nat.getDescriptor();
    
public final com.android.dx.rop.cst.CstStringgetName()
{@inheritDoc}

        return nat.getName();
    
public final com.android.dx.rop.cst.CstNatgetNat()
{@inheritDoc}

        return nat;
    
public java.lang.StringtoString()
{@inheritDoc}

        StringBuffer sb = new StringBuffer(100);

        sb.append(getClass().getName());
        sb.append('{");
        sb.append(nat.toHuman());
        sb.append('}");

        return sb.toString();