Class ExceptionHandler
- java.lang.Object
-
- org.apache.bcel.verifier.structurals.ExceptionHandler
-
public class ExceptionHandler extends java.lang.Object
This class represents an exception handler; that is, an ObjectType representing a subclass of java.lang.Throwable and the instruction the handler starts off (represented by an InstructionContext).
-
-
Field Summary
Fields Modifier and Type Field Description private ObjectType
catchType
The type of the exception to catch.(package private) static ExceptionHandler[]
EMPTY_ARRAY
private InstructionHandle
handlerPc
The InstructionHandle where the handling begins.
-
Constructor Summary
Constructors Constructor Description ExceptionHandler(ObjectType catchType, InstructionHandle handlerPc)
Leave instance creation to JustIce.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectType
getExceptionType()
Returns the type of the exception that's handled.InstructionHandle
getHandlerStart()
Returns the InstructionHandle where the handler starts off.
-
-
-
Field Detail
-
EMPTY_ARRAY
static final ExceptionHandler[] EMPTY_ARRAY
-
catchType
private final ObjectType catchType
The type of the exception to catch. NULL means ANY.
-
handlerPc
private final InstructionHandle handlerPc
The InstructionHandle where the handling begins.
-
-
Constructor Detail
-
ExceptionHandler
ExceptionHandler(ObjectType catchType, InstructionHandle handlerPc)
Leave instance creation to JustIce.
-
-
Method Detail
-
getExceptionType
public ObjectType getExceptionType()
Returns the type of the exception that's handled. 'null' means 'ANY'.
-
getHandlerStart
public InstructionHandle getHandlerStart()
Returns the InstructionHandle where the handler starts off.
-
-