Py2CpgOnFileSystem

io.joern.pysrc2cpg.Py2CpgOnFileSystem
class Py2CpgOnFileSystem extends X2CpgFrontend[Py2CpgOnFileSystemConfig]

Attributes

Graph
Supertypes
trait X2CpgFrontend[Py2CpgOnFileSystemConfig]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def createCpg(config: Py2CpgOnFileSystemConfig): Try[Cpg]

Entry point for files system based cpg generation from python code.

Entry point for files system based cpg generation from python code.

Value parameters

config

Configuration for cpg generation.

Attributes

Definition Classes
X2CpgFrontend

Inherited methods

def createCpg(inputName: String)(implicit defaultConfig: Py2CpgOnFileSystemConfig): Try[Cpg]

Create a CPG in memory for file at inputName with default configuration.

Create a CPG in memory for file at inputName with default configuration.

Attributes

Inherited from:
X2CpgFrontend
def createCpg(inputName: String, outputName: Option[String])(implicit defaultConfig: Py2CpgOnFileSystemConfig): Try[Cpg]

Create a CPG for code at inputName (a single location) with default frontend configuration. If outputName exists, it is the file name of the resulting CPG. Otherwise, the CPG is held in memory.

Create a CPG for code at inputName (a single location) with default frontend configuration. If outputName exists, it is the file name of the resulting CPG. Otherwise, the CPG is held in memory.

Attributes

Inherited from:
X2CpgFrontend
def createCpgWithOverlays(inputName: String)(implicit defaultConfig: Py2CpgOnFileSystemConfig): Try[Cpg]

Create a CPG for code at inputPath and apply default overlays.

Create a CPG for code at inputPath and apply default overlays.

Attributes

Inherited from:
X2CpgFrontend

Create a CPG with default overlays according to given configuration

Create a CPG with default overlays according to given configuration

Attributes

Inherited from:
X2CpgFrontend
def run(config: Py2CpgOnFileSystemConfig): Unit

Create CPG according to given configuration, printing errors to the console if they occur. The CPG is closed and not returned.

Create CPG according to given configuration, printing errors to the console if they occur. The CPG is closed and not returned.

Attributes

Inherited from:
X2CpgFrontend