org.apache.bcel.verifier.structurals

Class ExceptionHandlers

public class ExceptionHandlers extends 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
Hashtableexceptionhandlers
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 Detail

exceptionhandlers

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

Constructor Detail

ExceptionHandlers

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

Method Detail

getExceptionHandlers

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