public class ExceptionsAttribute extends AttributeInfo
Exceptions_attribute.| Modifier and Type | Field and Description |
|---|---|
static String |
tag
The name of this attribute
"Exceptions". |
constPool| Constructor and Description |
|---|
ExceptionsAttribute(ConstPool cp)
Constructs a new exceptions attribute.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
get, getConstPool, getName, length, setpublic static final String tag
"Exceptions".public ExceptionsAttribute(ConstPool cp)
cp - constant pool table.public AttributeInfo copy(ConstPool newCp, Map classnames)
Map object.copy in class AttributeInfonewCp - the constant pool table used by the new copy.classnames - pairs of replaced and substituted
class names. It can be null.public int[] getExceptionIndexes()
exception_index_table[].public String[] getExceptions()
public void setExceptionIndexes(int[] elist)
exception_index_table[].public void setExceptions(String[] elist)
public int tableLength()
number_of_exceptions.public int getException(int nth)
exception_index_table[nth].Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.