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

StdMethod

public final class StdMethod extends StdMember implements Method
Standard implementation of {@link Method}, which directly stores all the associated data.

Fields Summary
private final com.android.dx.rop.type.Prototype
effectiveDescriptor
{@code non-null;} the effective method descriptor
Constructors Summary
public StdMethod(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

        super(definingClass, accessFlags, nat, attributes);

        String descStr = getDescriptor().getString();
        effectiveDescriptor =
            Prototype.intern(descStr, definingClass.getClassType(),
                                    AccessFlags.isStatic(accessFlags),
                                    nat.isInstanceInit());
    
Methods Summary
public com.android.dx.rop.type.PrototypegetEffectiveDescriptor()
{@inheritDoc}

        return effectiveDescriptor;