public final class AttEnclosingMethod extends BaseAttribute
EnclosingMethod
attributes.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_NAME
non-null; attribute name for attributes of this type |
| Constructor and Description |
|---|
AttEnclosingMethod(CstType type,
CstNat method)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getNamepublic static final java.lang.String ATTRIBUTE_NAME
non-null; attribute name for attributes of this typepublic int byteLength()
6.>= 6; the total length, in bytespublic CstType getEnclosingClass()
non-null; the innermost enclosing classpublic CstNat getMethod()
null-ok; the name-and-type of the innermost enclosing
method, if anyCopyright © 2020. All Rights Reserved.