private static class ClassFile.CodeAttribute extends ClassFile.AttributeInfo
Modifier and Type | Class and Description |
---|---|
private static class |
ClassFile.CodeAttribute.ExceptionTableEntry
Representation of an entry in the "exception_table" of a "Code" attribute (see JVMS 4.7.3).
|
Modifier and Type | Field and Description |
---|---|
private ClassFile.AttributeInfo[] |
attributes |
private byte[] |
code |
private ClassFile.CodeAttribute.ExceptionTableEntry[] |
exceptionTableEntries |
private short |
maxLocals |
private short |
maxStack |
Constructor and Description |
---|
CodeAttribute(short attributeNameIndex,
short maxStack,
short maxLocals,
byte[] code,
ClassFile.CodeAttribute.ExceptionTableEntry[] exceptionTableEntries,
ClassFile.AttributeInfo[] attributes) |
Modifier and Type | Method and Description |
---|---|
static ClassFile.AttributeInfo |
loadBody(short attributeNameIndex,
ClassFile classFile,
java.io.DataInputStream dis) |
protected void |
storeBody(java.io.DataOutputStream dos)
Writes the body of this attribute in an attribute-type dependent way; see JVMS7 4.7.2 and following.
|
store
private final short maxStack
private final short maxLocals
private final byte[] code
private final ClassFile.CodeAttribute.ExceptionTableEntry[] exceptionTableEntries
private final ClassFile.AttributeInfo[] attributes
CodeAttribute(short attributeNameIndex, short maxStack, short maxLocals, byte[] code, ClassFile.CodeAttribute.ExceptionTableEntry[] exceptionTableEntries, ClassFile.AttributeInfo[] attributes)
public static ClassFile.AttributeInfo loadBody(short attributeNameIndex, ClassFile classFile, java.io.DataInputStream dis) throws java.io.IOException
java.io.IOException
protected void storeBody(java.io.DataOutputStream dos) throws java.io.IOException
ClassFile.AttributeInfo
storeBody
in class ClassFile.AttributeInfo
java.io.IOException