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
public static class ClassFile.CodeAttribute extends ClassFile.AttributeInfo
Representation of an unmodifiableCode
attribute, as read from a class file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClassFile.CodeAttribute.ExceptionTableEntry
Representation of an entry in the "exception_table" of a "Code" attribute (see JVMS 4.7.3).
-
Field Summary
Fields Modifier and Type Field Description private ClassFile.AttributeInfo[]
attributes
byte[]
code
private ClassFile.CodeAttribute.ExceptionTableEntry[]
exceptionTableEntries
private short
maxLocals
private short
maxStack
-
Constructor Summary
Constructors Constructor Description CodeAttribute(short attributeNameIndex, short maxStack, short maxLocals, byte[] code, ClassFile.CodeAttribute.ExceptionTableEntry[] exceptionTableEntries, ClassFile.AttributeInfo[] attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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.-
Methods inherited from class org.codehaus.janino.util.ClassFile.AttributeInfo
store
-
-
-
-
Field Detail
-
maxStack
private final short maxStack
-
maxLocals
private final short maxLocals
-
code
public final byte[] code
-
exceptionTableEntries
private final ClassFile.CodeAttribute.ExceptionTableEntry[] exceptionTableEntries
-
attributes
private final ClassFile.AttributeInfo[] attributes
-
-
Constructor Detail
-
CodeAttribute
public CodeAttribute(short attributeNameIndex, short maxStack, short maxLocals, byte[] code, ClassFile.CodeAttribute.ExceptionTableEntry[] exceptionTableEntries, ClassFile.AttributeInfo[] attributes)
-
-
Method Detail
-
loadBody
private static ClassFile.AttributeInfo loadBody(short attributeNameIndex, ClassFile classFile, java.io.DataInputStream dis) throws java.io.IOException
- Throws:
java.io.IOException
-
storeBody
protected void storeBody(java.io.DataOutputStream dos) throws java.io.IOException
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:
java.io.IOException
-
-