org.apache.bcel.verifier.structurals

Class ExceptionHandler


public class ExceptionHandler
extends java.lang.Object

This class represents an exception handler; that is, an ObjectType representing a subclass of java.lang.Throwable and the instruction the handler starts off (represented by an InstructionContext).
Version:
$Id: ExceptionHandler.java 371539 2006-01-23 14:08:00Z tcurdt $
Author:
Enver Haase

Field Summary

private ObjectType
catchtype
The type of the exception to catch.
private InstructionHandle
handlerpc
The InstructionHandle where the handling begins.

Constructor Summary

ExceptionHandler(ObjectType catch_type, InstructionHandle handler_pc)
Leave instance creation to JustIce.

Method Summary

ObjectType
getExceptionType()
Returns the type of the exception that's handled.
InstructionHandle
getHandlerStart()
Returns the InstructionHandle where the handler starts off.

Field Details

catchtype

private ObjectType catchtype
The type of the exception to catch. NULL means ANY.

handlerpc

private InstructionHandle handlerpc
The InstructionHandle where the handling begins.

Constructor Details

ExceptionHandler

(package private)  ExceptionHandler(ObjectType catch_type,
                                    InstructionHandle handler_pc)
Leave instance creation to JustIce.

Method Details

getExceptionType

public ObjectType getExceptionType()
Returns the type of the exception that's handled. 'null' means 'ANY'.

getHandlerStart

public InstructionHandle getHandlerStart()
Returns the InstructionHandle where the handler starts off.