class CLCodeAttribute extends CLAttributeInfo
| Modifier and Type | Field and Description |
|---|---|
ArrayList<CLAttributeInfo> |
attributes
Code_attribute.attributes item.
|
int |
attributesCount
Code_attribute.attributes_count item.
|
ArrayList<Integer> |
code
Code_attribute.code item.
|
long |
codeLength
Code_attribute.code_length item.
|
ArrayList<CLExceptionInfo> |
exceptionTable
Code_attribute.exception_table item.
|
int |
exceptionTableLength
Code_attribute.exception_table_length item.
|
int |
maxLocals
Code_attribute.max_locals item.
|
int |
maxStack
Code_attribute.max_stack item.
|
attributeLength, attributeNameIndex| Constructor and Description |
|---|
CLCodeAttribute(int attributeNameIndex,
long attributeLength,
int maxStack,
int maxLocals,
long codeLength,
ArrayList<Integer> code,
int exceptionTableLength,
ArrayList<CLExceptionInfo> exceptionTable,
int attributesCount,
ArrayList<CLAttributeInfo> attributes)
Construct a CLCodeAttribute object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(CLOutputStream out)
Write the contents of this attribute to the specified output stream.
|
void |
writeToStdOut(PrettyPrinter p)
Write the contents of this attribute to STDOUT in a format similar to
that of javap.
|
public int maxStack
public int maxLocals
public long codeLength
public int exceptionTableLength
public ArrayList<CLExceptionInfo> exceptionTable
public int attributesCount
public ArrayList<CLAttributeInfo> attributes
public CLCodeAttribute(int attributeNameIndex,
long attributeLength,
int maxStack,
int maxLocals,
long codeLength,
ArrayList<Integer> code,
int exceptionTableLength,
ArrayList<CLExceptionInfo> exceptionTable,
int attributesCount,
ArrayList<CLAttributeInfo> attributes)
attributeNameIndex - Code_attribute.attribute_name_index item.attributeLength - Code_attribute.attribute_length item.maxStack - Code_attribute.max_stack item.maxLocals - Code_attribute.max_locals item.codeLength - Code_attribute.code_length item.code - Code_attribute.code item.exceptionTableLength - Code_attribute.exception_table_length item.exceptionTable - Code_attribute.exception_table item.attributesCount - Code_attribute.attributes_count item.attributes - Code_attribute.attributes item.public void write(CLOutputStream out) throws IOException
CLAttributeInfowrite in class CLAttributeInfoout - output stream.IOException - if an error occurs while writing.public void writeToStdOut(PrettyPrinter p)
CLAttributeInfowriteToStdOut in class CLAttributeInfop - for pretty printing with indentation.