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_catchTypeprivate InstructionBlock_handlerBlockprivate ExceptionHandlerType_handlerTypeprivate InstructionBlock_tryBlock
-
Constructor Summary
Constructors Modifier Constructor Description privateExceptionHandler(InstructionBlock tryBlock, InstructionBlock handlerBlock, ExceptionHandlerType handlerType, TypeReference catchType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ExceptionHandler o)static ExceptionHandlercreateCatch(InstructionBlock tryBlock, InstructionBlock handlerBlock, TypeReference catchType)static ExceptionHandlercreateFinally(InstructionBlock tryBlock, InstructionBlock handlerBlock)TypeReferencegetCatchType()InstructionBlockgetHandlerBlock()ExceptionHandlerTypegetHandlerType()InstructionBlockgetTryBlock()booleanisCatch()booleanisFinally()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(ExceptionHandler o)
- Specified by:
compareToin interfacejava.lang.Comparable<ExceptionHandler>
-
-