Package aQute.bnd.classfile
Class CodeAttribute
- java.lang.Object
-
- aQute.bnd.classfile.CodeAttribute
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCodeAttribute.ExceptionHandler
-
Field Summary
Fields Modifier and Type Field Description Attribute[]attributesjava.nio.ByteBuffercodeCodeAttribute.ExceptionHandler[]exception_tableintmax_localsintmax_stackstatic java.lang.StringNAME
-
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 intattribute_length()java.lang.Stringname()static CodeAttributeread(java.io.DataInput in, ConstantPool constant_pool)java.lang.StringtoString()voidwrite(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:
toStringin 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_lengthin interfaceAttribute
-
-