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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
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)
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()