Package jadx.core.dex.visitors.regions
Class SwitchBreakVisitor.ExtractCommonBreak
java.lang.Object
jadx.core.dex.visitors.regions.AbstractRegionVisitor
jadx.core.dex.visitors.regions.SwitchBreakVisitor.BaseSwitchRegionVisitor
jadx.core.dex.visitors.regions.SwitchBreakVisitor.ExtractCommonBreak
- All Implemented Interfaces:
IRegionVisitor
- Enclosing class:
SwitchBreakVisitor
private static final class SwitchBreakVisitor.ExtractCommonBreak
extends SwitchBreakVisitor.BaseSwitchRegionVisitor
Add common 'break' if 'break' or exit insn ('return', 'throw', 'continue') found in all branches.
Remove exist common break if all branches contain exit insn.
-
Field Summary
Fields inherited from class jadx.core.dex.visitors.regions.SwitchBreakVisitor.BaseSwitchRegionVisitor
addBreakRegion, cleanupSet, currentSwitch -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprocessBranchRegion(MethodNode mth, IRegion region) voidprocessRegion(MethodNode mth, IRegion region) Methods inherited from class jadx.core.dex.visitors.regions.SwitchBreakVisitor.BaseSwitchRegionVisitor
enterRegion, isBreakBlock, isReRunRequested, leaveRegion, removeBreak, requestReRun, reset, setCurrentSwitchMethods inherited from class jadx.core.dex.visitors.regions.AbstractRegionVisitor
processBlock
-
Constructor Details
-
ExtractCommonBreak
private ExtractCommonBreak()
-
-
Method Details
-
processRegion
- Specified by:
processRegionin classSwitchBreakVisitor.BaseSwitchRegionVisitor
-
processBranchRegion
-