attr
Class exceptAttr
java.lang.Object
|
+--util.dataRead
|
+--attr.attrInfo
|
+--attr.exceptAttr
- public class exceptAttr
- extends attrInfo
This class represents the exceptions attribute. The structure of
this attribute is:
Exceptions_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 number_of_exceptions;
u2 exception_index_table[ number_of_exceptions ];
}
The attribute_name_index and attribute length are read by the
attrFactory.allocAttr method. These values are passed into the class
constructor.
Each non-zero value in the exception_index_table is an index into
the constant pool of a constClass_or_String object represent
a class type that this method throws.
JVM Spec. 4.7.5
The Exceptions attribute indicates which checked exceptions a
method may throw. There must be exactly one Exceptions attribute
in each method_info structure.
- Author:
- Ian Kaplan
Constructor Summary |
exceptAttr(java.lang.String name,
int length,
java.io.DataInputStream dStream,
constPool constPoolSec)
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
exceptTable
constClass_or_String[] exceptTable
exceptAttr
public exceptAttr(java.lang.String name,
int length,
java.io.DataInputStream dStream,
constPool constPoolSec)
getExceptTab
public constClass_or_String[] getExceptTab()