All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----harpoon.ClassFile.Raw.Attribute.Attribute | +----harpoon.ClassFile.Raw.Attribute.AttributeExceptions
Exceptions
attribute is a variable-length
attribute used in the attributes
table of a
method_info
structure. The Exceptions
attribute indicates which checked exceptions a method may throw. The
must be exactly one Exceptions
attribute in each
method_info
structure.
exception_index_table
must be a valid index into the constant_pool
table.
attribute_length
item indicates
the length of the attribute, excluding the initial six bytes.
public int exception_index_table[]
exception_index_table
must be a valid index into the constant_pool
table. For each table item, if
exception_index_table[i] != 0
, where 0 <= i <
number_of_exceptions
, then the constant_pool
entry at index exception_index_table[i]
must be a
CONSTANT_Class_info
structure representing a class
type that this method is declared to throw.
public AttributeExceptions(ClassFile parent, int attribute_name_index, int exception_index_table[])
public long attribute_length()
attribute_length
item indicates
the length of the attribute, excluding the initial six bytes.
public int number_of_exceptions()
public ConstantClass exception_index_table(int i)
null
if the
entry is zero.
public void write(ClassDataOutputStream out) throws IOException
public void print(PrintWriter pw, int indent)
All Packages Class Hierarchy This Package Previous Next Index