Package jminusminus
Class CLCodeAttribute
java.lang.Object
jminusminus.CLAttributeInfo
jminusminus.CLCodeAttribute
Representation of Code_attribute structure.
-
Field Summary
Modifier and TypeFieldDescriptionCode_attribute.attributes item.int
Code_attribute.attributes_count item.Code_attribute.code item.long
Code_attribute.code_length item.Code_attribute.exception_table item.int
Code_attribute.exception_table_length item.int
Code_attribute.max_locals item.int
Code_attribute.max_stack item.Fields inherited from class jminusminus.CLAttributeInfo
attributeLength, attributeNameIndex
-
Constructor Summary
ConstructorDescriptionCLCodeAttribute
(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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(CLOutputStream out) Write the contents of this attribute to the specified output stream.
-
Field Details
-
maxStack
public int maxStackCode_attribute.max_stack item. -
maxLocals
public int maxLocalsCode_attribute.max_locals item. -
codeLength
public long codeLengthCode_attribute.code_length item. -
code
Code_attribute.code item. -
exceptionTableLength
public int exceptionTableLengthCode_attribute.exception_table_length item. -
exceptionTable
Code_attribute.exception_table item. -
attributesCount
public int attributesCountCode_attribute.attributes_count item. -
attributes
Code_attribute.attributes item.
-
-
Constructor Details
-
CLCodeAttribute
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) Construct a CLCodeAttribute object.- Parameters:
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.
-
-
Method Details
-
write
Write the contents of this attribute to the specified output stream.- Overrides:
write
in classCLAttributeInfo
- Parameters:
out
- output stream.- Throws:
IOException
- if an error occurs while writing.
-