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

Field Summary
(package private)  constClass_or_String[] exceptTable
           
 
Fields inherited from class attr.attrInfo
attrName, len
 
Fields inherited from class util.dataRead
bytesRead
 
Constructor Summary
exceptAttr(java.lang.String name, int length, java.io.DataInputStream dStream, constPool constPoolSec)
           
 
Method Summary
 constClass_or_String[] getExceptTab()
           
 
Methods inherited from class attr.attrInfo
getName, pr
 
Methods inherited from class util.dataRead
getBytesRead, readU1, readU2, readU4
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

exceptTable

constClass_or_String[] exceptTable
Constructor Detail

exceptAttr

public exceptAttr(java.lang.String name,
                  int length,
                  java.io.DataInputStream dStream,
                  constPool constPoolSec)
Method Detail

getExceptTab

public constClass_or_String[] getExceptTab()