| java.lang.Object edu.umd.cs.findbugs.ba.ExceptionHandlerMap
ExceptionHandlerMap | public class ExceptionHandlerMap (Code) | | This class provides a convenient way of determining the exception handlers
for instructions in a method. Essentially, it's a
a map of InstructionHandles to lists of CodeExceptionGen objects.
This class also maps instructions which are the start of exception handlers
to the CodeExceptionGen object representing the handler.
author: David Hovemeyer |
Method Summary | |
public CodeExceptionGen | getHandlerForStartInstruction(InstructionHandle start) If the given instruction is the start of an exception handler,
get the CodeExceptionGen object representing the handler. | public List<CodeExceptionGen> | getHandlerList(InstructionHandle handle) Get the list of exception handlers (CodeExceptionGen objects)
which are specified to handle exceptions for the instruction whose
handle is given. |
ExceptionHandlerMap | public ExceptionHandlerMap(MethodGen methodGen)(Code) | | Constructor.
Parameters: methodGen - the method to build the map for |
getHandlerForStartInstruction | public CodeExceptionGen getHandlerForStartInstruction(InstructionHandle start)(Code) | | If the given instruction is the start of an exception handler,
get the CodeExceptionGen object representing the handler.
Parameters: start - the instruction the CodeExceptionGen object, or null if the instruction is not thestart of an exception handler |
getHandlerList | public List<CodeExceptionGen> getHandlerList(InstructionHandle handle)(Code) | | Get the list of exception handlers (CodeExceptionGen objects)
which are specified to handle exceptions for the instruction whose
handle is given. Note that the handlers in the returned list
are in order of priority, as defined in the method's exception handler
table.
Parameters: handle - the handle of the instruction we want the exception handlers for the list of exception handlers, or null if there are no handlersregistered for the instruction |
|
|