javassist.bytecode
public class ExceptionsAttribute extends AttributeInfo
Exceptions_attribute
.
Field Summary | |
---|---|
static String | tag
The name of this attribute "Exceptions" . |
Constructor Summary | |
---|---|
ExceptionsAttribute(ConstPool cp)
Constructs a new exceptions attribute.
|
Method Summary | |
---|---|
AttributeInfo | copy(ConstPool newCp, Map classnames)
Makes a copy. |
int | getException(int nth)
Returns the value of exception_index_table[nth] . |
int[] | getExceptionIndexes()
Returns exception_index_table[] . |
String[] | getExceptions()
Returns the names of exceptions that the method may throw. |
void | setExceptionIndexes(int[] elist)
Sets exception_index_table[] . |
void | setExceptions(String[] elist)
Sets the names of exceptions that the method may throw. |
int | tableLength()
Returns number_of_exceptions . |
"Exceptions"
.Parameters: cp constant pool table.
Map
object.
Parameters: newCp the constant pool table used by the new copy. classnames pairs of replaced and substituted
class names. It can be null
.
exception_index_table[nth]
.exception_index_table[]
.exception_index_table[]
.number_of_exceptions
.