Package jadx.core.dex.visitors
Class MethodThrowsVisitor
java.lang.Object
jadx.core.dex.visitors.AbstractVisitor
jadx.core.dex.visitors.MethodThrowsVisitor
- All Implemented Interfaces:
IDexTreeVisitor
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckInsn(MethodNode mth, InsnNode insn, Set<String> excludedExceptions, boolean skipExceptions) voidCalled after loading dex tree, but before visitor traversal.private booleanisBaseException(String exception, String possibleParent) private booleanisImplements(ArgType type, ArgType baseType) private booleanisThrowsRequired(MethodNode mth, ArgType type) private voidmergeExceptions(Set<String> excSet) private voidprivate ClspMethodsearchOverriddenMethod(ClspClass clsDetails, String signature) private @Nullable MethodNodesearchOverriddenMethod(ClassNode cls, MethodInfo mth, String signature) validateException(ArgType clsType) voidvisit(MethodNode mth) Visit methodprivate voidvisitThrows(MethodNode mth, ArgType excType, Set<String> excludedExceptions) Methods inherited from class jadx.core.dex.visitors.AbstractVisitor
getName, toString, visit
-
Field Details
-
root
-
-
Constructor Details
-
MethodThrowsVisitor
public MethodThrowsVisitor()
-
-
Method Details
-
init
Description copied from interface:IDexTreeVisitorCalled after loading dex tree, but before visitor traversal.- Specified by:
initin interfaceIDexTreeVisitor- Overrides:
initin classAbstractVisitor- Throws:
JadxException
-
visit
Description copied from interface:IDexTreeVisitorVisit method- Specified by:
visitin interfaceIDexTreeVisitor- Overrides:
visitin classAbstractVisitor- Throws:
JadxException
-
mergeExceptions
-
processInstructions
-
checkInsn
private void checkInsn(MethodNode mth, InsnNode insn, Set<String> excludedExceptions, boolean skipExceptions) throws JadxException - Throws:
JadxException
-
visitThrows
-
isThrowsRequired
-
validateException
-
isBaseException
- Returns:
- is 'possibleParent' an exception class of 'exception'
-
isImplements
-
searchOverriddenMethod
@Nullable private @Nullable MethodNode searchOverriddenMethod(ClassNode cls, MethodInfo mth, String signature) -
searchOverriddenMethod
-