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

CodeException Class Reference

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

Public Methods

 CodeException (int start_pc, int end_pc, int handler_pc, int catch_type)
 CodeException (CodeException c)
void accept (Visitor v)
CodeException copy ()
final void dump (DataOutputStream file) throws IOException
final int getCatchType ()
final int getEndPC ()
final int getHandlerPC ()
final int getStartPC ()
final void setCatchType (int catch_type)
final void setEndPC (int end_pc)
final void setHandlerPC (int handler_pc)
final void setStartPC (int start_pc)
final String toString ()
final String toString (ConstantPool cp)
final String toString (ConstantPool cp, boolean verbose)
 CodeException (int start_pc, int end_pc, int handler_pc, int catch_type)
 CodeException (CodeException c)
void accept (Visitor v)
CodeException copy ()
final void dump (DataOutputStream file) throws IOException
final int getCatchType ()
final int getEndPC ()
final int getHandlerPC ()
final int getStartPC ()
final void setCatchType (int catch_type)
final void setEndPC (int end_pc)
final void setHandlerPC (int handler_pc)
final void setStartPC (int start_pc)
final String toString ()
final String toString (ConstantPool cp)
final String toString (ConstantPool cp, boolean verbose)

Private Methods

 CodeException (DataInputStream file) throws IOException
 CodeException (DataInputStream file) throws IOException

Private Attributes

int start_pc
int end_pc
int handler_pc
int catch_type

Detailed Description

This class represents an entry in the exception table of the Code attribute and is used only there. It contains a range in which a particular exception handler is active.

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

Definition at line 15 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.


Constructor & Destructor Documentation

CodeException::CodeException int   start_pc,
int   end_pc,
int   handler_pc,
int   catch_type
[inline]
 

Parameters:
start_pc   Range in the code the exception handler is active, start_pc is inclusive while
end_pc   is exclusive
handler_pc   Starting address of exception handler, i.e. an offset from start of code.
catch_type   If zero the handler catches any exception, otherwise it points to the exception class which is to be caught.

Definition at line 35 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

CodeException::CodeException CodeException   c [inline]
 

Initialize from another object.

Definition at line 46 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

CodeException::CodeException DataInputStream   file [inline, private]
 

Construct object from file stream.

Parameters:
file   Input stream
Exceptions:
IOException  

Definition at line 54 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

CodeException::CodeException int   start_pc,
int   end_pc,
int   handler_pc,
int   catch_type
[inline]
 

Parameters:
start_pc   Range in the code the exception handler is active, start_pc is inclusive while
end_pc   is exclusive
handler_pc   Starting address of exception handler, i.e., an offset from start of code.
catch_type   If zero the handler catches any exception, otherwise it points to the exception class which is to be caught.

Definition at line 35 of file src/de/fub/bytecode/classfile/CodeException.java.

CodeException::CodeException CodeException   c [inline]
 

Initialize from another object.

Definition at line 46 of file src/de/fub/bytecode/classfile/CodeException.java.

CodeException::CodeException DataInputStream   file [inline, private]
 

Construct object from file stream.

Parameters:
file   Input stream
Exceptions:
IOException  

Definition at line 54 of file src/de/fub/bytecode/classfile/CodeException.java.


Member Function Documentation

void CodeException::accept Visitor   v [inline]
 

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

Definition at line 66 of file src/de/fub/bytecode/classfile/CodeException.java.

void CodeException::accept Visitor   v [inline]
 

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

Definition at line 66 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

CodeException CodeException::copy   [inline]
 

Returns:
deep copy of this object

Definition at line 72 of file src/de/fub/bytecode/classfile/CodeException.java.

CodeException CodeException::copy   [inline]
 

Returns:
deep copy of this object

Definition at line 72 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

Referenced by Code::copy().

final void CodeException::dump DataOutputStream   file [inline]
 

Dump code exception to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

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

final void CodeException::dump DataOutputStream   file [inline]
 

Dump code exception to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

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

Referenced by Code::dump().

final int CodeException::getCatchType   [inline]
 

Returns:
0, if the handler catches any exception, otherwise it points to the exception class which is to be caught.

Definition at line 96 of file src/de/fub/bytecode/classfile/CodeException.java.

final int CodeException::getCatchType   [inline]
 

Returns:
0, if the handler catches any exception, otherwise it points to the exception class which is to be caught.

Definition at line 96 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

Referenced by CodeException(), and MethodGen::MethodGen().

final int CodeException::getEndPC   [inline]
 

Returns:
Exclusive end index of the region where the handler is active.

Definition at line 100 of file src/de/fub/bytecode/classfile/CodeException.java.

final int CodeException::getEndPC   [inline]
 

Returns:
Exclusive end index of the region where the handler is active.

Definition at line 100 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

Referenced by CodeException(), and MethodGen::MethodGen().

final int CodeException::getHandlerPC   [inline]
 

Returns:
Starting address of exception handler, relative to the code.

Definition at line 104 of file src/de/fub/bytecode/classfile/CodeException.java.

final int CodeException::getHandlerPC   [inline]
 

Returns:
Starting address of exception handler, relative to the code.

Definition at line 104 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

Referenced by CodeException(), and MethodGen::MethodGen().

final int CodeException::getStartPC   [inline]
 

Returns:
Inclusive start index of the region where the handler is active.

Definition at line 108 of file src/de/fub/bytecode/classfile/CodeException.java.

final int CodeException::getStartPC   [inline]
 

Returns:
Inclusive start index of the region where the handler is active.

Definition at line 108 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

Referenced by CodeException(), and MethodGen::MethodGen().

final void CodeException::setCatchType int   catch_type [inline]
 

Parameters:
catch_type.  

Definition at line 112 of file src/de/fub/bytecode/classfile/CodeException.java.

final void CodeException::setCatchType int   catch_type [inline]
 

Parameters:
catch_type.  

Definition at line 112 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

final void CodeException::setEndPC int   end_pc [inline]
 

Parameters:
end_pc   end of handled block

Definition at line 118 of file src/de/fub/bytecode/classfile/CodeException.java.

final void CodeException::setEndPC int   end_pc [inline]
 

Parameters:
end_pc   end of handled block

Definition at line 118 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

final void CodeException::setHandlerPC int   handler_pc [inline]
 

Parameters:
handler_pc   where the actual code is

Definition at line 124 of file src/de/fub/bytecode/classfile/CodeException.java.

final void CodeException::setHandlerPC int   handler_pc [inline]
 

Parameters:
handler_pc   where the actual code is

Definition at line 124 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

final void CodeException::setStartPC int   start_pc [inline]
 

Parameters:
start_pc   start of handled block

Definition at line 130 of file src/de/fub/bytecode/classfile/CodeException.java.

final void CodeException::setStartPC int   start_pc [inline]
 

Parameters:
start_pc   start of handled block

Definition at line 130 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

final String CodeException::toString ConstantPool   cp,
boolean   verbose
[inline]
 

Returns:
String representation.

Definition at line 147 of file src/de/fub/bytecode/classfile/CodeException.java.

final String CodeException::toString   [inline]
 

Returns:
String representation.

Definition at line 136 of file src/de/fub/bytecode/classfile/CodeException.java.

final String CodeException::toString ConstantPool   cp,
boolean   verbose
[inline]
 

Returns:
String representation.

Definition at line 147 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.

final String CodeException::toString   [inline]
 

Returns:
String representation.

Definition at line 136 of file lib/jpf/de/fub/bytecode/classfile/CodeException.java.


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