com.android.dx.cf.attrib
Class AttEnclosingMethod

java.lang.Object
  extended by com.android.dx.cf.attrib.BaseAttribute
      extended by com.android.dx.cf.attrib.AttEnclosingMethod
All Implemented Interfaces:
Attribute

public final class AttEnclosingMethod
extends BaseAttribute

Attribute class for standards-track EnclosingMethod attributes.


Field Summary
static String ATTRIBUTE_NAME
          non-null; attribute name for attributes of this type
 
Constructor Summary
AttEnclosingMethod(CstType type, CstNat method)
          Constructs an instance.
 
Method Summary
 int byteLength()
          Get the total length of the attribute in bytes, including the header.
 CstType getEnclosingClass()
          Gets the innermost enclosing class.
 CstNat getMethod()
          Gets the name-and-type of the innermost enclosing method, if any.
 
Methods inherited from class com.android.dx.cf.attrib.BaseAttribute
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_NAME

public static final String ATTRIBUTE_NAME
non-null; attribute name for attributes of this type

See Also:
Constant Field Values
Constructor Detail

AttEnclosingMethod

public AttEnclosingMethod(CstType type,
                          CstNat method)
Constructs an instance.

Parameters:
type - non-null; the innermost enclosing class
method - null-ok; the name-and-type of the innermost enclosing method, if any
Method Detail

byteLength

public int byteLength()
Get the total length of the attribute in bytes, including the header. Since the header is always six bytes, the result of this method is always at least 6.

Returns:
>= 6; the total length, in bytes

getEnclosingClass

public CstType getEnclosingClass()
Gets the innermost enclosing class.

Returns:
non-null; the innermost enclosing class

getMethod

public CstNat getMethod()
Gets the name-and-type of the innermost enclosing method, if any.

Returns:
null-ok; the name-and-type of the innermost enclosing method, if any


Copyright © 2015. All rights reserved.