Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class DE.fub.inf.JVM.ClassGen.CodeExceptionGen

java.lang.Object
  |
  +--DE.fub.inf.JVM.ClassGen.CodeExceptionGen

public final class CodeExceptionGen
extends java.lang.Object
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 1998/08/26 09:06:13 dahm Exp $
Author:
M. Dahm
See Also:
MethodGen, CodeException

Constructor Summary
CodeExceptionGen(InstructionHandle start_pc, InstructionHandle end_pc, InstructionHandle handler_pc, java.lang.String catch_type)
          Add an exception handler, i.e. specify region where a handler is active and an instruction where the actual handling is done.
 
Method Summary
java.lang.String getCatchType()
           
CodeException getCodeException(ConstantPoolGen cp)
          Get CodeException object.
InstructionHandle getEndPC()
           
InstructionHandle getHandlerPC()
           
InstructionHandle getStartPC()
           
void setCatchType(java.lang.String catch_type)
           
void setEndPC(InstructionHandle end_pc)
           
void setHandlerPC(InstructionHandle handler_pc)
           
void setStartPC(InstructionHandle start_pc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

CodeExceptionGen

public CodeExceptionGen(InstructionHandle start_pc,
                        InstructionHandle end_pc,
                        InstructionHandle handler_pc,
                        java.lang.String catch_type)
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 (fully qualified class name)
Method Detail

getCodeException

public CodeException getCodeException(ConstantPoolGen cp)
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

setStartPC

public void setStartPC(InstructionHandle start_pc)

getStartPC

public InstructionHandle getStartPC()

setEndPC

public void setEndPC(InstructionHandle end_pc)

getEndPC

public InstructionHandle getEndPC()

setHandlerPC

public void setHandlerPC(InstructionHandle handler_pc)

getHandlerPC

public InstructionHandle getHandlerPC()

setCatchType

public void setCatchType(java.lang.String catch_type)

getCatchType

public java.lang.String getCatchType()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD