Package jadx.core.dex.visitors.regions
Class SwitchBreakVisitor.BaseSwitchRegionVisitor
java.lang.Object
jadx.core.dex.visitors.regions.AbstractRegionVisitor
jadx.core.dex.visitors.regions.SwitchBreakVisitor.BaseSwitchRegionVisitor
- All Implemented Interfaces:
IRegionVisitor
- Direct Known Subclasses:
SwitchBreakVisitor.ExtractCommonBreak,SwitchBreakVisitor.RemoveUnreachableBreak
- Enclosing class:
SwitchBreakVisitor
private abstract static class SwitchBreakVisitor.BaseSwitchRegionVisitor
extends AbstractRegionVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<IContainer> protected SwitchRegionprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanenterRegion(MethodNode mth, IRegion region) protected booleanisBreakBlock(@Nullable IBlock block) booleanvoidleaveRegion(MethodNode mth, IRegion region) abstract voidprocessRegion(MethodNode mth, IRegion region) protected voidremoveBreak(IBlock breakBlock, IContainer parentContainer) voidvoidreset()Method called before visitor rerunvoidsetCurrentSwitch(SwitchRegion currentSwitch) Methods inherited from class jadx.core.dex.visitors.regions.AbstractRegionVisitor
processBlock
-
Field Details
-
addBreakRegion
-
cleanupSet
-
currentSwitch
-
reRunRequested
private boolean reRunRequested
-
-
Constructor Details
-
BaseSwitchRegionVisitor
private BaseSwitchRegionVisitor()
-
-
Method Details
-
processRegion
-
enterRegion
- Specified by:
enterRegionin interfaceIRegionVisitor- Overrides:
enterRegionin classAbstractRegionVisitor- Returns:
- true for traverse sub-blocks, false otherwise.
-
leaveRegion
- Specified by:
leaveRegionin interfaceIRegionVisitor- Overrides:
leaveRegionin classAbstractRegionVisitor
-
reset
public void reset()Method called before visitor rerun -
requestReRun
public void requestReRun() -
isReRunRequested
public boolean isReRunRequested() -
setCurrentSwitch
-
isBreakBlock
-
removeBreak
-