org.apache.bcel.classfile
public final class ExceptionTable extends Attribute
Version: $Id: ExceptionTable.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: Code
| Field Summary | |
|---|---|
| int[] | exception_index_table |
| int | number_of_exceptions |
| Constructor Summary | |
|---|---|
| ExceptionTable(ExceptionTable c)
Initialize from another object. | |
| ExceptionTable(int name_index, int length, int[] exception_index_table, ConstantPool constant_pool) | |
| ExceptionTable(int name_index, int length, DataInputStream file, ConstantPool constant_pool)
Construct object from file stream. | |
| 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: name_index Index in constant pool length Content length in bytes file Input stream constant_pool Array of constants
Throws: IOException
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.