Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ExceptionTable Class Reference

Inheritance diagram for ExceptionTable:
[legend]
Collaboration diagram for ExceptionTable:
[legend]
List of all members.

Public Methods

 ExceptionTable (int name_index, int length, int[] exception_index_table, ConstantPool constant_pool)
 ExceptionTable (ExceptionTable c)
void accept (Visitor v)
Attribute copy (ConstantPool constant_pool)
final void dump (DataOutputStream file) throws IOException
final int[] getExceptionIndexTable ()
final String[] getExceptionNames ()
final int getNumberOfExceptions ()
final void setExceptionIndexTable (int[] exception_index_table)
final String toString ()
 ExceptionTable (int name_index, int length, int[] exception_index_table, ConstantPool constant_pool)
 ExceptionTable (ExceptionTable c)
void accept (Visitor v)
Attribute copy (ConstantPool constant_pool)
final void dump (DataOutputStream file) throws IOException
final int[] getExceptionIndexTable ()
final String[] getExceptionNames ()
final int getNumberOfExceptions ()
final void setExceptionIndexTable (int[] exception_index_table)
final String toString ()

Private Methods

 ExceptionTable (int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException
 ExceptionTable (int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException

Private Attributes

int number_of_exceptions
int[] exception_index_table
int[] exception_index_table

Detailed Description

Class is derived from Attribute and represents the table of exceptions that are thrown by a method. This attribute may be used once per method.

Version:
Id:
ExceptionTable.java,v 1.1.1.1 2002/01/24 03:44:01 pserver Exp
Author:
M. Dahm
See also:
Code , Attribute

Definition at line 16 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.


Constructor & Destructor Documentation

ExceptionTable::ExceptionTable int   name_index,
int   length,
int   exception_index_table[],
ConstantPool   constant_pool
[inline]
 

Parameters:
name_index   Index in constant pool
length   Content length in bytes
exception_index_table   Table of indices in constant pool
constant_pool   Array of constants

Definition at line 26 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

ExceptionTable::ExceptionTable int   name_index,
int   length,
DataInputStream   file,
ConstantPool   constant_pool
[inline, private]
 

Construct object from file stream.

Parameters:
name_index   Index in constant pool
length   Content length in bytes
file   Input stream
constant_pool   Array of constants
Exceptions:
IOException  

Definition at line 41 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

ExceptionTable::ExceptionTable ExceptionTable   c [inline]
 

Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.

Definition at line 56 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

ExceptionTable::ExceptionTable int   name_index,
int   length,
int   exception_index_table[],
ConstantPool   constant_pool
[inline]
 

Parameters:
name_index   Index in constant pool
length   Content length in bytes
exception_index_table   Table of indices in constant pool
constant_pool   Array of constants

Definition at line 26 of file src/de/fub/bytecode/classfile/ExceptionTable.java.

ExceptionTable::ExceptionTable int   name_index,
int   length,
DataInputStream   file,
ConstantPool   constant_pool
[inline, private]
 

Construct object from file stream.

Parameters:
name_index   Index in constant pool
length   Content length in bytes
file   Input stream
constant_pool   Array of constants
Exceptions:
IOException  

Definition at line 41 of file src/de/fub/bytecode/classfile/ExceptionTable.java.

ExceptionTable::ExceptionTable ExceptionTable   c [inline]
 

Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.

Definition at line 56 of file src/de/fub/bytecode/classfile/ExceptionTable.java.


Member Function Documentation

void ExceptionTable::accept Visitor   v [inline, virtual]
 

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters:
v   Visitor object

Reimplemented from Attribute.

Definition at line 67 of file src/de/fub/bytecode/classfile/ExceptionTable.java.

void ExceptionTable::accept Visitor   v [inline, virtual]
 

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters:
v   Visitor object

Reimplemented from Attribute.

Definition at line 67 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

Attribute ExceptionTable::copy ConstantPool   constant_pool [inline, virtual]
 

Returns:
deep copy of this attribute

Reimplemented from Attribute.

Definition at line 73 of file src/de/fub/bytecode/classfile/ExceptionTable.java.

Attribute ExceptionTable::copy ConstantPool   constant_pool [inline, virtual]
 

Returns:
deep copy of this attribute

Reimplemented from Attribute.

Definition at line 73 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

final void ExceptionTable::dump DataOutputStream   file [inline]
 

Dump exceptions attribute to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Attribute.

Definition at line 85 of file src/de/fub/bytecode/classfile/ExceptionTable.java.

final void ExceptionTable::dump DataOutputStream   file [inline]
 

Dump exceptions attribute to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Attribute.

Definition at line 85 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

final int [] ExceptionTable::getExceptionIndexTable   [inline]
 

Returns:
Array of indices into constant pool of thrown exceptions.

Definition at line 95 of file src/de/fub/bytecode/classfile/ExceptionTable.java.

final int [] ExceptionTable::getExceptionIndexTable   [inline]
 

Returns:
Array of indices into constant pool of thrown exceptions.

Definition at line 95 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

Referenced by ExceptionTable().

final String [] ExceptionTable::getExceptionNames   [inline]
 

Returns:
class names of thrown exceptions

Definition at line 99 of file src/de/fub/bytecode/classfile/ExceptionTable.java.

final String [] ExceptionTable::getExceptionNames   [inline]
 

Returns:
class names of thrown exceptions

Definition at line 99 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

final int ExceptionTable::getNumberOfExceptions   [inline]
 

Returns:
Length of exception table.

Definition at line 110 of file src/de/fub/bytecode/classfile/ExceptionTable.java.

final int ExceptionTable::getNumberOfExceptions   [inline]
 

Returns:
Length of exception table.

Definition at line 109 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

final void ExceptionTable::setExceptionIndexTable int   exception_index_table[] [inline]
 

Parameters:
exception_index_table.   Also redefines number_of_exceptions according to table length.

Definition at line 115 of file src/de/fub/bytecode/classfile/ExceptionTable.java.

final void ExceptionTable::setExceptionIndexTable int   exception_index_table[] [inline]
 

Parameters:
exception_index_table.   Also redefines number_of_exceptions according to table length.

Definition at line 114 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

final String ExceptionTable::toString   [inline]
 

Returns:
String representation, i.e., a list of thrown exceptions.

Reimplemented from Attribute.

Definition at line 123 of file src/de/fub/bytecode/classfile/ExceptionTable.java.

final String ExceptionTable::toString   [inline]
 

Returns:
String representation, i.e. a list of thrown exceptions.

Reimplemented from Attribute.

Definition at line 122 of file lib/jpf/de/fub/bytecode/classfile/ExceptionTable.java.

Referenced by Method::toString().


The documentation for this class was generated from the following files:
Generated at Thu Feb 7 07:10:26 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001