Package aQute.bnd.classfile
Class CodeAttribute
- java.lang.Object
-
- aQute.bnd.classfile.CodeAttribute
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CodeAttribute.ExceptionHandler
-
Field Summary
Fields Modifier and Type Field Description Attribute[]
attributes
java.nio.ByteBuffer
code
CodeAttribute.ExceptionHandler[]
exception_table
int
max_locals
int
max_stack
static java.lang.String
NAME
-
Constructor Summary
Constructors Constructor Description CodeAttribute(int max_stack, int max_locals, java.nio.ByteBuffer code, CodeAttribute.ExceptionHandler[] exception_table, Attribute[] attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
attribute_length()
java.lang.String
name()
static CodeAttribute
read(java.io.DataInput in, ConstantPool constant_pool)
java.lang.String
toString()
void
write(java.io.DataOutput out, ConstantPool constant_pool)
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
max_stack
public final int max_stack
-
max_locals
public final int max_locals
-
code
public final java.nio.ByteBuffer code
-
exception_table
public final CodeAttribute.ExceptionHandler[] exception_table
-
attributes
public final Attribute[] attributes
-
-
Constructor Detail
-
CodeAttribute
public CodeAttribute(int max_stack, int max_locals, java.nio.ByteBuffer code, CodeAttribute.ExceptionHandler[] exception_table, Attribute[] attributes)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
read
public static CodeAttribute read(java.io.DataInput in, ConstantPool constant_pool) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(java.io.DataOutput out, ConstantPool constant_pool) throws java.io.IOException
-
attribute_length
public int attribute_length()
- Specified by:
attribute_length
in interfaceAttribute
-
-