FileDocCategorySizeDatePackage
AttEnclosingMethod.javaAPI DocAndroid 5.1 API2261Thu Mar 12 22:18:30 GMT 2015com.android.dx.cf.attrib

AttEnclosingMethod

public final class AttEnclosingMethod extends BaseAttribute
Attribute class for standards-track {@code EnclosingMethod} attributes.

Fields Summary
public static final String
ATTRIBUTE_NAME
{@code non-null;} attribute name for attributes of this type
private final com.android.dx.rop.cst.CstType
type
{@code non-null;} the innermost enclosing class
private final com.android.dx.rop.cst.CstNat
method
{@code null-ok;} the name-and-type of the innermost enclosing method, if any
Constructors Summary
public AttEnclosingMethod(com.android.dx.rop.cst.CstType type, com.android.dx.rop.cst.CstNat method)
Constructs an instance.

param
type {@code non-null;} the innermost enclosing class
param
method {@code null-ok;} the name-and-type of the innermost enclosing method, if any


                                 
         
        super(ATTRIBUTE_NAME);

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

        this.type = type;
        this.method = method;
    
Methods Summary
public intbyteLength()
{@inheritDoc}

        return 10;
    
public com.android.dx.rop.cst.CstTypegetEnclosingClass()
Gets the innermost enclosing class.

return
{@code non-null;} the innermost enclosing class

        return type;
    
public com.android.dx.rop.cst.CstNatgetMethod()
Gets the name-and-type of the innermost enclosing method, if any.

return
{@code null-ok;} the name-and-type of the innermost enclosing method, if any

        return method;