Package org.codehaus.janino.util
Class ClassFile.CodeAttribute
java.lang.Object
org.codehaus.janino.util.ClassFile.AttributeInfo
org.codehaus.janino.util.ClassFile.CodeAttribute
- Enclosing class:
- ClassFile
Representation of an unmodifiable
Code
attribute, as read from a class file.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Representation of an entry in the "exception_table" of a "Code" attribute (see JVMS 4.7.3). -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassFile.AttributeInfo[]
final byte[]
private final ClassFile.CodeAttribute.ExceptionTableEntry[]
private final short
private final short
-
Constructor Summary
ConstructorsConstructorDescriptionCodeAttribute
(short attributeNameIndex, short maxStack, short maxLocals, byte[] code, ClassFile.CodeAttribute.ExceptionTableEntry[] exceptionTableEntries, ClassFile.AttributeInfo[] attributes) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ClassFile.AttributeInfo
loadBody
(short attributeNameIndex, ClassFile classFile, DataInputStream dis) protected void
Writes the body of this attribute in an attribute-type dependent way; see JVMS7 4.7.2 and following.Methods inherited from class org.codehaus.janino.util.ClassFile.AttributeInfo
store
-
Field Details
-
maxStack
private final short maxStack -
maxLocals
private final short maxLocals -
code
public final byte[] code -
exceptionTableEntries
-
attributes
-
-
Constructor Details
-
CodeAttribute
public CodeAttribute(short attributeNameIndex, short maxStack, short maxLocals, byte[] code, ClassFile.CodeAttribute.ExceptionTableEntry[] exceptionTableEntries, ClassFile.AttributeInfo[] attributes)
-
-
Method Details
-
loadBody
private static ClassFile.AttributeInfo loadBody(short attributeNameIndex, ClassFile classFile, DataInputStream dis) throws IOException - Throws:
IOException
-
storeBody
Description copied from class:ClassFile.AttributeInfo
Writes the body of this attribute in an attribute-type dependent way; see JVMS7 4.7.2 and following.- Specified by:
storeBody
in classClassFile.AttributeInfo
- Throws:
IOException
-