Package jadx.core.dex.trycatch
Class ExceptionHandler
- java.lang.Object
-
- jadx.core.dex.trycatch.ExceptionHandler
-
public class ExceptionHandler extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
build
public static ExceptionHandler build(MethodNode mth, int addr, @Nullable @Nullable ClassInfo type)
-
addCatchType
public boolean addCatchType(MethodNode mth, @Nullable @Nullable ClassInfo type)
Add exception type to catch block- Parameters:
type- - null for 'all' or 'Throwable' handler
-
addCatchTypes
public void addCatchTypes(MethodNode mth, java.util.Collection<ClassInfo> types)
-
getCatchTypes
public java.util.List<ClassInfo> getCatchTypes()
-
getArgType
public ArgType getArgType()
-
isCatchAll
public boolean isCatchAll()
-
getHandlerOffset
public int getHandlerOffset()
-
getHandlerBlock
public BlockNode getHandlerBlock()
-
setHandlerBlock
public void setHandlerBlock(BlockNode handlerBlock)
-
getBlocks
public java.util.List<BlockNode> getBlocks()
-
addBlock
public void addBlock(BlockNode node)
-
getHandlerRegion
public IContainer getHandlerRegion()
-
setHandlerRegion
public void setHandlerRegion(IContainer handlerRegion)
-
getArg
public InsnArg getArg()
-
setArg
public void setArg(InsnArg arg)
-
setTryBlock
public void setTryBlock(TryCatchBlockAttr tryBlock)
-
getTryBlock
public TryCatchBlockAttr getTryBlock()
-
isFinally
public boolean isFinally()
-
setFinally
public void setFinally(boolean isFinally)
-
isRemoved
public boolean isRemoved()
-
markForRemove
public void markForRemove()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
catchTypeStr
public java.lang.String catchTypeStr()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-