org.apache.bcel.classfile
public final class ExceptionTable extends Attribute
See Also: Code
Constructor Summary | |
---|---|
ExceptionTable(ExceptionTable c)
Initialize from another object. | |
ExceptionTable(int name_index, int length, int[] exception_index_table, ConstantPool constant_pool) |
Method Summary | |
---|---|
void | accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. |
Attribute | copy(ConstantPool _constant_pool) |
void | dump(DataOutputStream file)
Dump exceptions attribute to file stream in binary format.
|
int[] | getExceptionIndexTable() |
String[] | getExceptionNames() |
int | getNumberOfExceptions() |
void | setExceptionIndexTable(int[] exception_index_table) |
String | toString() |
Parameters: name_index Index in constant pool length Content length in bytes exception_index_table Table of indices in constant pool constant_pool Array of constants
Parameters: v Visitor object
Returns: deep copy of this attribute
Parameters: file Output file stream
Throws: IOException
Returns: Array of indices into constant pool of thrown exceptions.
Returns: class names of thrown exceptions
Returns: Length of exception table.
Parameters: exception_index_table the list of exception indexes Also redefines number_of_exceptions according to table length.
Returns: String representation, i.e., a list of thrown exceptions.