Package com.strobel.assembler.ir
Class ExceptionHandler
- java.lang.Object
-
- com.strobel.assembler.ir.ExceptionHandler
-
- All Implemented Interfaces:
java.lang.Comparable<ExceptionHandler>
public final class ExceptionHandler extends java.lang.Object implements java.lang.Comparable<ExceptionHandler>
-
-
Field Summary
Fields Modifier and Type Field Description private TypeReference
_catchType
private InstructionBlock
_handlerBlock
private ExceptionHandlerType
_handlerType
private InstructionBlock
_tryBlock
-
Constructor Summary
Constructors Modifier Constructor Description private
ExceptionHandler(InstructionBlock tryBlock, InstructionBlock handlerBlock, ExceptionHandlerType handlerType, TypeReference catchType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ExceptionHandler o)
static ExceptionHandler
createCatch(InstructionBlock tryBlock, InstructionBlock handlerBlock, TypeReference catchType)
static ExceptionHandler
createFinally(InstructionBlock tryBlock, InstructionBlock handlerBlock)
TypeReference
getCatchType()
InstructionBlock
getHandlerBlock()
ExceptionHandlerType
getHandlerType()
InstructionBlock
getTryBlock()
boolean
isCatch()
boolean
isFinally()
java.lang.String
toString()
-
-
-
Field Detail
-
_tryBlock
private final InstructionBlock _tryBlock
-
_handlerBlock
private final InstructionBlock _handlerBlock
-
_handlerType
private final ExceptionHandlerType _handlerType
-
_catchType
private final TypeReference _catchType
-
-
Constructor Detail
-
ExceptionHandler
private ExceptionHandler(InstructionBlock tryBlock, InstructionBlock handlerBlock, ExceptionHandlerType handlerType, TypeReference catchType)
-
-
Method Detail
-
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
public final InstructionBlock getTryBlock()
-
getHandlerBlock
public final InstructionBlock getHandlerBlock()
-
getHandlerType
public final ExceptionHandlerType getHandlerType()
-
getCatchType
public final TypeReference getCatchType()
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(ExceptionHandler o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ExceptionHandler>
-
-