Package com.strobel.assembler.ir
Class ExceptionHandler
java.lang.Object
com.strobel.assembler.ir.ExceptionHandler
- All Implemented Interfaces:
Comparable<ExceptionHandler>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeReference
private final InstructionBlock
private final ExceptionHandlerType
private final InstructionBlock
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ExceptionHandler
(InstructionBlock tryBlock, InstructionBlock handlerBlock, ExceptionHandlerType handlerType, TypeReference catchType) -
Method Summary
Modifier and TypeMethodDescriptionint
static ExceptionHandler
createCatch
(InstructionBlock tryBlock, InstructionBlock handlerBlock, TypeReference catchType) static ExceptionHandler
createFinally
(InstructionBlock tryBlock, InstructionBlock handlerBlock) final TypeReference
final InstructionBlock
final ExceptionHandlerType
final InstructionBlock
final boolean
isCatch()
final boolean
final String
toString()
-
Field Details
-
_tryBlock
-
_handlerBlock
-
_handlerType
-
_catchType
-
-
Constructor Details
-
ExceptionHandler
private ExceptionHandler(InstructionBlock tryBlock, InstructionBlock handlerBlock, ExceptionHandlerType handlerType, TypeReference catchType)
-
-
Method Details
-
createCatch
public static ExceptionHandler createCatch(InstructionBlock tryBlock, InstructionBlock handlerBlock, TypeReference catchType) -
createFinally
public static ExceptionHandler createFinally(InstructionBlock tryBlock, InstructionBlock handlerBlock) -
isFinally
public final boolean isFinally() -
isCatch
public final boolean isCatch() -
getTryBlock
-
getHandlerBlock
-
getHandlerType
-
getCatchType
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ExceptionHandler>
-