Package jadx.core.dex.visitors.regions
Class ReturnVisitor.ReturnRemoverVisitor
java.lang.Object
jadx.core.dex.visitors.regions.TracedRegionVisitor
jadx.core.dex.visitors.regions.ReturnVisitor.ReturnRemoverVisitor
- All Implemented Interfaces:
IRegionVisitor
- Enclosing class:
ReturnVisitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanblockNotInLoop(MethodNode mth, BlockNode block) booleanenterRegion(MethodNode mth, IRegion region) private static booleanisEmpty(IContainer container) Check if container not contains instructions, don't count one 'return' instruction (it will be removed later).private booleannoTrailInstructions(BlockNode block) Check that there are no code after this block in regions structurevoidprocessBlockTraced(MethodNode mth, IBlock container, IRegion currentRegion) Methods inherited from class jadx.core.dex.visitors.regions.TracedRegionVisitor
getRegionStack, leaveRegion, processBlock
-
Constructor Details
-
ReturnRemoverVisitor
private ReturnRemoverVisitor()
-
-
Method Details
-
enterRegion
- Specified by:
enterRegionin interfaceIRegionVisitor- Overrides:
enterRegionin classTracedRegionVisitor- Returns:
- true for traverse sub-blocks, false otherwise.
-
processBlockTraced
- Specified by:
processBlockTracedin classTracedRegionVisitor
-
blockNotInLoop
-
noTrailInstructions
Check that there are no code after this block in regions structure -
isEmpty
Check if container not contains instructions, don't count one 'return' instruction (it will be removed later).
-