Class SwitchOverStringVisitor

java.lang.Object
jadx.core.dex.visitors.AbstractVisitor
jadx.core.dex.visitors.regions.SwitchOverStringVisitor
All Implemented Interfaces:
IDexTreeVisitor, IRegionIterativeVisitor

public class SwitchOverStringVisitor extends AbstractVisitor implements IRegionIterativeVisitor
A switch(string) java code will be compiled to two switches in class code. Sometimes, android's d8/r8 will make some further modification. 1st switch could be changed to ifs to reduce size of dex. 2nd switch could be flattened and removed if there are many cases using a same block.
  • Field Details

    • DEFAULT_NUM_VALUE

      private static final Integer DEFAULT_NUM_VALUE
  • Constructor Details

    • SwitchOverStringVisitor

      public SwitchOverStringVisitor()
  • Method Details