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

CodeExceptionGen Class Reference

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

Public Methods

 CodeExceptionGen (InstructionHandle start_pc, InstructionHandle end_pc, InstructionHandle handler_pc, ObjectType catch_type)
boolean containsTarget (InstructionHandle ih)
ObjectType getCatchType ()
CodeException getCodeException (ConstantPoolGen cp)
InstructionHandle getEndPC ()
InstructionHandle getHandlerPC ()
InstructionHandle getStartPC ()
void setCatchType (ObjectType catch_type)
void setEndPC (InstructionHandle end_pc)
void setHandlerPC (InstructionHandle handler_pc)
void setStartPC (InstructionHandle start_pc)
String toString ()
void updateTarget (InstructionHandle old_ih, InstructionHandle new_ih)
 CodeExceptionGen (InstructionHandle start_pc, InstructionHandle end_pc, InstructionHandle handler_pc, ObjectType catch_type)
Object clone ()
boolean containsTarget (InstructionHandle ih)
ObjectType getCatchType ()
CodeException getCodeException (ConstantPoolGen cp)
InstructionHandle getEndPC ()
InstructionHandle getHandlerPC ()
InstructionHandle getStartPC ()
void setCatchType (ObjectType catch_type)
void setEndPC (InstructionHandle end_pc)
void setHandlerPC (InstructionHandle handler_pc)
void setStartPC (InstructionHandle start_pc)
String toString ()
void updateTarget (InstructionHandle old_ih, InstructionHandle new_ih)

Private Attributes

InstructionHandle start_pc
InstructionHandle end_pc
InstructionHandle handler_pc
ObjectType catch_type

Detailed Description

This class represents an exception handler, i.e. specifies the region where a handler is active and an instruction where the actual handling is done. pool as parameters.

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

Definition at line 16 of file lib/jpf/de/fub/bytecode/generic/CodeExceptionGen.java.


Constructor & Destructor Documentation

CodeExceptionGen::CodeExceptionGen InstructionHandle   start_pc,
InstructionHandle   end_pc,
InstructionHandle   handler_pc,
ObjectType   catch_type
[inline]
 

Add an exception handler, i.e. specify region where a handler is active and an instruction where the actual handling is done.

Parameters:
start_pc   Start of region
end_pc   End of region
handler_pc   Where handling is done
catch_type   which exception is handled

Definition at line 31 of file lib/jpf/de/fub/bytecode/generic/CodeExceptionGen.java.

CodeExceptionGen::CodeExceptionGen InstructionHandle   start_pc,
InstructionHandle   end_pc,
InstructionHandle   handler_pc,
ObjectType   catch_type
[inline]
 

Add an exception handler, i.e., specify region where a handler is active and an instruction where the actual handling is done.

Parameters:
start_pc   Start of region
end_pc   End of region
handler_pc   Where handling is done
catch_type   which exception is handled

Definition at line 31 of file src/de/fub/bytecode/generic/CodeExceptionGen.java.


Member Function Documentation

boolean CodeExceptionGen::containsTarget InstructionHandle   ih [inline]
 

Returns:
true, if ih is target of this handler

Reimplemented from InstructionTargeter.

Definition at line 49 of file src/de/fub/bytecode/generic/CodeExceptionGen.java.

boolean CodeExceptionGen::containsTarget InstructionHandle   ih [inline]
 

Returns:
true, if ih is target of this handler

Reimplemented from InstructionTargeter.

Definition at line 41 of file lib/jpf/de/fub/bytecode/generic/CodeExceptionGen.java.

CodeException CodeExceptionGen::getCodeException ConstantPoolGen   cp [inline]
 

Get CodeException object.

This relies on that the instruction list has already been dumped to byte code or or that the `setPositions' methods has been called for the instruction list.

Parameters:
cp   constant pool

Definition at line 61 of file src/de/fub/bytecode/generic/CodeExceptionGen.java.

CodeException CodeExceptionGen::getCodeException ConstantPoolGen   cp [inline]
 

Get CodeException object.

This relies on that the instruction list has already been dumped to byte code or or that the `setPositions' methods has been called for the instruction list.

Parameters:
cp   constant pool

Definition at line 53 of file lib/jpf/de/fub/bytecode/generic/CodeExceptionGen.java.

Referenced by MethodGen::getCodeExceptions().

void CodeExceptionGen::updateTarget InstructionHandle   old_ih,
InstructionHandle   new_ih
[inline]
 

Parameters:
old_ih   old target, either start or end
new_ih   new target

Reimplemented from InstructionTargeter.

Definition at line 90 of file src/de/fub/bytecode/generic/CodeExceptionGen.java.

void CodeExceptionGen::updateTarget InstructionHandle   old_ih,
InstructionHandle   new_ih
[inline]
 

Parameters:
old_ih   old target, either start or end
new_ih   new target

Reimplemented from InstructionTargeter.

Definition at line 82 of file lib/jpf/de/fub/bytecode/generic/CodeExceptionGen.java.


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