jef.dna.attributes
Interface ExceptionsAttribute

All Superinterfaces:
Attribute, BytesCountable, java.lang.Cloneable
All Known Implementing Classes:
ExceptionAttr

public interface ExceptionsAttribute
extends Attribute

Class representing an Exception Attribute. The Exceptions attribute is a variable-length attribute used in the attributes table of a method_info structure. The Exceptions attribute indicates which checked exceptions a method may throw. There may be at most one Exceptions attribute in each method_info structure.

Author:
Francesco Russo frusso@cs.unibo.it

Method Summary
 java.util.List<java.lang.Integer> getExceptionIndexTable()
          Gets the exception_index_table.
 int getNumberOfExceptions()
          Gets the number of exceptions that will be stored within the exception_index_table.
 
Methods inherited from interface jef.dna.attributes.Attribute
clone, fromStream, getDna, getLength, getNameIndex, setDna, setNameIndex, toStream, updateRefs, validate
 
Methods inherited from interface jef.dna.util.BytesCountable
getBytesCount
 

Method Detail

getNumberOfExceptions

int getNumberOfExceptions()
Gets the number of exceptions that will be stored within the exception_index_table.

Returns:
int Dimension of the exception_index_table

getExceptionIndexTable

java.util.List<java.lang.Integer> getExceptionIndexTable()
Gets the exception_index_table. This data strucutre is actually a List containing indexes pointing to constant pool table entries of type CONSTANT_Class_info. These entries define the classes of the exceptions this method is declareced to throw

Returns:
List The exception_index_table