public final class AttCode extends BaseAttribute
Code 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 |
|---|
AttCode(int maxStack,
int maxLocals,
BytecodeArray code,
ByteCatchList catches,
AttributeList attributes)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
byteLength()
Get the total length of the attribute in bytes, including the
header.
|
AttributeList |
getAttributes()
Gets the associated attribute list.
|
ByteCatchList |
getCatches()
Gets the exception table.
|
BytecodeArray |
getCode()
Gets the bytecode array.
|
int |
getMaxLocals()
Gets the number of locals.
|
int |
getMaxStack()
Gets the maximum stack size.
|
getNamepublic static final java.lang.String ATTRIBUTE_NAME
non-null; attribute name for attributes of this typepublic AttCode(int maxStack,
int maxLocals,
BytecodeArray code,
ByteCatchList catches,
AttributeList attributes)
maxStack - >= 0; the stack sizemaxLocals - >= 0; the number of localscode - non-null; array containing the bytecode per secatches - non-null; the exception tableattributes - non-null; the associated list of attributespublic int byteLength()
Attribute6.>= 6; the total length, in bytespublic int getMaxStack()
>= 0; the maximum stack sizepublic int getMaxLocals()
>= 0; the number of localspublic BytecodeArray getCode()
non-null; the bytecode arraypublic ByteCatchList getCatches()
non-null; the exception tablepublic AttributeList getAttributes()
non-null; the attribute listCopyright © 2020. All Rights Reserved.