Top Description Fields Constructors Methods
org.apache.bcel.verifier.structurals

public Class ExceptionHandlers

extends Object
Class Inheritance
Imports
java.util.HashMap, .HashSet, .Map, .Set, org.apache.bcel.generic.CodeExceptionGen, .InstructionHandle, .MethodGen

This class allows easy access to ExceptionHandler objects.

Field Summary

Modifier and TypeField and Description
private static final ExceptionHandler[]
EMPTY_ARRAY

Empty array.

private final Map<InstructionHandle, Set<ExceptionHandler>>
exceptionHandlers

The ExceptionHandler instances.

Constructor Summary

AccessConstructor and Description
public
ExceptionHandlers(final MethodGen mg)

Constructs a new ExceptionHandlers instance.

Method Summary

Modifier and TypeMethod and Description
public ExceptionHandler[]
getExceptionHandlers(final InstructionHandle ih)

Returns all the ExceptionHandler instances representing exception handlers that protect the instruction ih.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_ARRAYback to summary
private static final ExceptionHandler[] EMPTY_ARRAY

Empty array.

exceptionHandlersback to summary
private final Map<InstructionHandle, Set<ExceptionHandler>> exceptionHandlers

The ExceptionHandler instances. Key: InstructionHandle objects, Values: HashSet instances.

Constructor Detail

ExceptionHandlersback to summary
public ExceptionHandlers(final MethodGen mg)

Constructs a new ExceptionHandlers instance.

Method Detail

getExceptionHandlersback to summary
public ExceptionHandler[] getExceptionHandlers(final InstructionHandle ih)

Returns all the ExceptionHandler instances representing exception handlers that protect the instruction ih.