org.apache.bcel.verifier.structurals

Class ExceptionHandlers


public class ExceptionHandlers
extends java.lang.Object

This class allows easy access to ExceptionHandler objects.
Version:
$Id: ExceptionHandlers.java 386056 2006-03-15 11:31:56Z tcurdt $
Author:
Enver Haase

Field Summary

private Hashtable
exceptionhandlers
The ExceptionHandler instances.

Constructor Summary

ExceptionHandlers(MethodGen mg)
Constructor.

Method Summary

ExceptionHandler[]
getExceptionHandlers(InstructionHandle ih)
Returns all the ExceptionHandler instances representing exception handlers that protect the instruction ih.

Field Details

exceptionhandlers

private Hashtable exceptionhandlers
The ExceptionHandler instances. Key: InstructionHandle objects, Values: HashSet instances.

Constructor Details

ExceptionHandlers

public ExceptionHandlers(MethodGen mg)
Constructor. Creates a new ExceptionHandlers instance.

Method Details

getExceptionHandlers

public ExceptionHandler[] getExceptionHandlers(InstructionHandle ih)
Returns all the ExceptionHandler instances representing exception handlers that protect the instruction ih.