Package jadx.core.dex.trycatch
Class ExceptionHandler
java.lang.Object
jadx.core.dex.trycatch.ExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate InsnArgprivate BlockNodeprivate final intprivate IRegionprivate booleanprivate static final org.slf4j.Loggerprivate booleanprivate TryCatchBlockAttr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddCatchType(MethodNode mth, @Nullable ClassInfo type) Add exception type to catch blockvoidaddCatchTypes(MethodNode mth, Collection<ClassInfo> types) static ExceptionHandlerbuild(MethodNode mth, int addr, @Nullable ClassInfo type) booleangetArg()@Nullable BlockNodeintinthashCode()booleanbooleanbooleanvoidvoidvoidsetFinally(boolean isFinally) voidsetHandlerBlock(BlockNode handlerBlock) voidsetHandlerRegion(IRegion handlerRegion) voidsetTryBlock(TryCatchBlockAttr tryBlock) toString()
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
catchTypes
-
handlerOffset
private final int handlerOffset -
handlerBlock
-
blocks
-
handlerRegion
-
arg
-
tryBlock
-
isFinally
private boolean isFinally -
removed
private boolean removed
-
-
Constructor Details
-
ExceptionHandler
private ExceptionHandler(int addr)
-
-
Method Details
-
build
-
addCatchType
Add exception type to catch block- Parameters:
type- - null for 'all' or 'Throwable' handler
-
addCatchTypes
-
getCatchTypes
-
getArgType
-
isCatchAll
public boolean isCatchAll() -
getHandlerOffset
public int getHandlerOffset() -
getHandlerBlock
-
setHandlerBlock
-
getBlocks
-
addBlock
-
getHandlerRegion
-
setHandlerRegion
-
getArg
-
setArg
-
setTryBlock
-
getTryBlock
-
isFinally
public boolean isFinally() -
setFinally
public void setFinally(boolean isFinally) -
isRemoved
public boolean isRemoved() -
getBottomSplitter
-
markForRemove
public void markForRemove() -
equals
-
hashCode
public int hashCode() -
catchTypeStr
-
toString
-