All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.shiftleft.semanticcpg.language.dotextension.CfgNodeDot.scala Maven / Gradle / Ivy

There is a newer version: 4.0.131
Show newest version
package io.shiftleft.semanticcpg.language.dotextension

import io.shiftleft.codepropertygraph.generated.nodes.Method
import io.shiftleft.semanticcpg.dotgenerator.{DotCdgGenerator, DotCfgGenerator}
import io.shiftleft.semanticcpg.language.*

class CfgNodeDot(val traversal: Iterator[Method]) extends AnyVal {

  def dotCfg: Iterator[String] = DotCfgGenerator.dotCfg(traversal)

  def dotCdg: Iterator[String] = DotCdgGenerator.dotCdg(traversal)

  def plotDotCfg(implicit viewer: ImageViewer): Unit = {
    Shared.plotAndDisplay(dotCfg.l, viewer)
  }

  def plotDotCdg(implicit viewer: ImageViewer): Unit = {
    Shared.plotAndDisplay(dotCdg.l, viewer)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy