Class DotGraphVisitor

java.lang.Object
jadx.core.dex.visitors.AbstractVisitor
jadx.core.dex.visitors.DotGraphVisitor
All Implemented Interfaces:
IDexTreeVisitor

public class DotGraphVisitor extends AbstractVisitor
  • Field Details

    • NL

      private static final String NL
      See Also:
    • NLQR

      private static final String NLQR
    • useRegions

      private final boolean useRegions
    • rawInsn

      private final boolean rawInsn
    • highlightRegion

      private Optional<IRegion> highlightRegion
  • Constructor Details

    • DotGraphVisitor

      private DotGraphVisitor(boolean useRegions, boolean rawInsn)
    • DotGraphVisitor

      private DotGraphVisitor(boolean useRegions, boolean rawInsn, Optional<IRegion> highlightRegion)
  • Method Details

    • dump

      public static DotGraphVisitor dump()
    • dumpRaw

      public static DotGraphVisitor dumpRaw()
    • dumpRegions

      public static DotGraphVisitor dumpRegions()
    • dumpRawRegions

      public static DotGraphVisitor dumpRawRegions()
    • debugDumpWithRegionHighlight

      public static DotGraphVisitor debugDumpWithRegionHighlight(IRegion region)
      Helper function to generate a cfg at a given point showing only one of the regions in the graph. Intended to be called during a debugging session to produce a CFG with only a region of interest, with DotGraphVisitor.debugDumpWithRegionHiglight(region).visit(mth);
      Parameters:
      region - the region to show
      Returns:
      the visitor, to be invoked with `.visit(mth);`
    • getName

      public String getName()
      Description copied from interface: IDexTreeVisitor
      Visitor short id
      Specified by:
      getName in interface IDexTreeVisitor
      Overrides:
      getName in class AbstractVisitor
    • visit

      public void visit(MethodNode mth)
      Description copied from interface: IDexTreeVisitor
      Visit method
      Specified by:
      visit in interface IDexTreeVisitor
      Overrides:
      visit in class AbstractVisitor
    • save

      public void save(File dir, MethodNode mth)