FileDocCategorySizeDatePackage
AttEnclosingMethod.javaAPI DocAndroid 1.5 API2213Wed May 06 22:41:02 BST 2009com.android.dx.cf.attrib

AttEnclosingMethod

public final class AttEnclosingMethod extends BaseAttribute
Attribute class for standards-track EnclosingMethod attributes.

Fields Summary
public static final String
ATTRIBUTE_NAME
non-null; attribute name for attributes of this type
private final com.android.dx.rop.cst.CstType
type
non-null; the innermost enclosing class
private final com.android.dx.rop.cst.CstNat
method
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 non-null; the innermost enclosing class
param
method 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
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
null-ok; the name-and-type of the innermost enclosing method, if any

        return method;