public class ExceptionsAttribute extends AttributeInfo
Exceptions_attribute
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
tag
The name of this attribute
"Exceptions" . |
Constructor and Description |
---|
ExceptionsAttribute(ConstPool cp)
Constructs a new exceptions attribute.
|
Modifier and Type | Method and Description |
---|---|
AttributeInfo |
copy(ConstPool newCp,
java.util.Map classnames)
Makes a copy.
|
int |
getException(int nth)
Returns the value of
exception_index_table[nth] . |
int[] |
getExceptionIndexes()
Returns
exception_index_table[] . |
java.lang.String[] |
getExceptions()
Returns the names of exceptions that the method may throw.
|
void |
setExceptionIndexes(int[] elist)
Sets
exception_index_table[] . |
void |
setExceptions(java.lang.String[] elist)
Sets the names of exceptions that the method may throw.
|
int |
tableLength()
Returns
number_of_exceptions . |
get, getConstPool, getName, length, set
public static final java.lang.String tag
"Exceptions"
.public ExceptionsAttribute(ConstPool cp)
cp
- constant pool table.public AttributeInfo copy(ConstPool newCp, java.util.Map classnames)
Map
object.copy
in class AttributeInfo
newCp
- 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 java.lang.String[] getExceptions()
public void setExceptionIndexes(int[] elist)
exception_index_table[]
.public void setExceptions(java.lang.String[] elist)
public int tableLength()
number_of_exceptions
.public int getException(int nth)
exception_index_table[nth]
.Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.