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

public Class ExceptionHandler

extends Object
Class Inheritance
Imports
org.apache.bcel.generic.InstructionHandle, .ObjectType

This class represents an exception handler; that is, an ObjectType representing a subclass of Throwable and the instruction the handler starts off (represented by an InstructionContext).

Field Summary

Modifier and TypeField and Description
private final ObjectType
catchType

The type of the exception to catch.

pack-priv static final ExceptionHandler[]
private final InstructionHandle
handlerPc

The InstructionHandle where the handling begins.

Constructor Summary

AccessConstructor and Description
pack-priv
ExceptionHandler(final ObjectType catchType, final InstructionHandle handlerPc)

Leave instance creation to JustIce.

Method Summary

Modifier and TypeMethod and Description
public ObjectType
getExceptionType()

Returns the type of the exception that's handled.

public InstructionHandle
getHandlerStart()

Returns the InstructionHandle where the handler starts off.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

catchTypeback to summary
private final ObjectType catchType

The type of the exception to catch. NULL means ANY.

EMPTY_ARRAYback to summary
pack-priv static final ExceptionHandler[] EMPTY_ARRAY
handlerPcback to summary
private final InstructionHandle handlerPc

The InstructionHandle where the handling begins.

Constructor Detail

ExceptionHandlerback to summary
pack-priv ExceptionHandler(final ObjectType catchType, final InstructionHandle handlerPc)

Leave instance creation to JustIce.

Method Detail

getExceptionTypeback to summary
public ObjectType getExceptionType()

Returns the type of the exception that's handled. 'null' means 'ANY'.

getHandlerStartback to summary
public InstructionHandle getHandlerStart()

Returns the InstructionHandle where the handler starts off.