Package jadx.core.dex.visitors
Class AttachTryCatchVisitor
java.lang.Object
jadx.core.dex.visitors.AbstractVisitor
jadx.core.dex.visitors.AttachTryCatchVisitor
- All Implemented Interfaces:
IDexTreeVisitor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidattachCatchAttr(CatchAttr catchAttr, InsnNode insn) private static List<ExceptionHandler> convertToHandlers(MethodNode mth, ICatch catchBlock, InsnNode[] insnByOffset) private static @Nullable ExceptionHandlercreateHandler(MethodNode mth, InsnNode[] insnByOffset, int handlerOffset, @Nullable ClassInfo type) private static voidinitTryCatches(MethodNode mth, InsnNode[] insnByOffset, List<ITry> tries) private static InsnNodeprivate static voidmarkTryBounds(InsnNode[] insnByOffset, ITry aTry, CatchAttr catchAttr) voidvisit(MethodNode mth) Visit methodMethods inherited from class jadx.core.dex.visitors.AbstractVisitor
getName, init, toString, visit
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG
-
-
Constructor Details
-
AttachTryCatchVisitor
public AttachTryCatchVisitor()
-
-
Method Details
-
visit
Description copied from interface:IDexTreeVisitorVisit method- Specified by:
visitin interfaceIDexTreeVisitor- Overrides:
visitin classAbstractVisitor- Throws:
JadxException
-
initTryCatches
-
markTryBounds
-
attachCatchAttr
-
convertToHandlers
private static List<ExceptionHandler> convertToHandlers(MethodNode mth, ICatch catchBlock, InsnNode[] insnByOffset) -
createHandler
@Nullable private static @Nullable ExceptionHandler createHandler(MethodNode mth, InsnNode[] insnByOffset, int handlerOffset, @Nullable @Nullable ClassInfo type) -
insertNOP
-