Package com.android.dx.cf.attrib
Class AttEnclosingMethod
java.lang.Object
com.android.dx.cf.attrib.BaseAttribute
com.android.dx.cf.attrib.AttEnclosingMethod
- All Implemented Interfaces:
Attribute
Attribute class for standards-track
EnclosingMethod
attributes.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
non-null;
attribute name for attributes of this type -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the total length of the attribute in bytes, including the header.Gets the innermost enclosing class.Gets the name-and-type of the innermost enclosing method, if any.Methods inherited from class com.android.dx.cf.attrib.BaseAttribute
getName
-
Field Details
-
ATTRIBUTE_NAME
non-null;
attribute name for attributes of this type- See Also:
-
-
Constructor Details
-
AttEnclosingMethod
Constructs an instance.- Parameters:
type
-non-null;
the innermost enclosing classmethod
-null-ok;
the name-and-type of the innermost enclosing method, if any
-
-
Method Details
-
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 least6
.- Returns:
>= 6;
the total length, in bytes
-
getEnclosingClass
Gets the innermost enclosing class.- Returns:
non-null;
the innermost enclosing class
-
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
-