io.joern.pysrc2cpg

Members list

Concise view

Type members

Classlikes

class AutoIncIndex(var index: Int)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class CodeToCpg(cpg: Cpg, inputProvider: Iterable[InputProvider]) extends ConcurrentWriterCpgPass[InputProvider]

Attributes

Companion:
object
Graph
Supertypes
class ConcurrentWriterCpgPass[InputProvider]
class NewStyleCpgPassBase[InputProvider]
trait CpgPassBase
class Object
trait Matchable
class Any
object CodeToCpg

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class ConfigPass(cpg: Cpg, inputProviders: Iterable[InputProvider]) extends ConcurrentWriterCpgPass[InputProvider]

Attributes

Graph
Supertypes
class ConcurrentWriterCpgPass[InputProvider]
class NewStyleCpgPassBase[InputProvider]
trait CpgPassBase
class Object
trait Matchable
class Any
object Constants

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
class DendenciesFromRequirementsTxtPass(cpg: Cpg) extends CpgPass

Attributes

Graph
Supertypes
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
class DynamicTypeHintFullNamePass(cpg: Cpg) extends CpgPass

The type hints we pick up via the parser are not full names. This pass fixes that by retrieving the import for each dynamic type hint and adjusting the dynamic type hint full name field accordingly.

The type hints we pick up via the parser are not full names. This pass fixes that by retrieving the import for each dynamic type hint and adjusting the dynamic type hint full name field accordingly.

Attributes

Graph
Supertypes
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
class EdgeBuilder(diffGraph: DiffGraphBuilder)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class ImportsPass(cpg: Cpg) extends CpgPass

Attributes

Graph
Supertypes
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
case class LineAndColumn(line: Int, column: Int, endLine: Int, endColumn: Int)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class MethodParameters(posStartIndex: Int, positionalParams: Iterable[NewMethodParameterIn])

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
NewMain.type
class NodeBuilder(diffGraph: DiffGraphBuilder)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
class NodeToCode(content: String)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
object Py2Cpg

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Py2Cpg.type
class Py2Cpg(inputProviders: Iterable[InputProvider], configInputProviders: Iterable[InputProvider], outputCpg: Cpg)

Entry point for general cpg generation from python code.

Entry point for general cpg generation from python code.

Attributes

configInputProviders

Set of functions which provide InputPairs representing configuration files. The functions must be safe to call from different threads.

inputProviders

Set of functions which provide InputPairs. The functions must be safe to call from different threads.

outputCpg

Empty target cpg which will be populated.

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
class Py2CpgOnFileSystem extends X2CpgFrontend[Py2CpgOnFileSystemConfig]

Attributes

Graph
Supertypes
trait X2CpgFrontend[Py2CpgOnFileSystemConfig]
class Object
trait Matchable
class Any
case class Py2CpgOnFileSystemConfig(outputFile: Path, inputDir: Path, venvDir: Path, ignoreVenvDir: Boolean, disableDummyTypes: Boolean, requirementsTxt: String) extends X2CpgConfig[Py2CpgOnFileSystemConfig]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait X2CpgConfig[Py2CpgOnFileSystemConfig]
class Object
trait Matchable
class Any
class PythonAstVisitor(absFileName: String, relFileName: String, val nodeToCode: NodeToCode, version: PythonVersion) extends PythonAstVisitorHelpers

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
class PythonInheritanceNamePass(cpg: Cpg) extends XInheritanceFullNamePass

Using some basic heuristics, will try to resolve type full names from types found within the CPG. Requires ImportPass as a pre-requisite.

Using some basic heuristics, will try to resolve type full names from types found within the CPG. Requires ImportPass as a pre-requisite.

Attributes

Graph
Supertypes
class XInheritanceFullNamePass
class ForkJoinParallelCpgPass[TypeDecl]
class NewStyleCpgPassBase[TypeDecl]
trait CpgPassBase
class Object
trait Matchable
class Any
class PythonNaiveCallLinker(cpg: Cpg) extends CpgPass

Link remaining unlinked Python calls to methods only by their name (not full name)

Link remaining unlinked Python calls to methods only by their name (not full name)

Attributes

cpg

the target code property graph.

Graph
Supertypes
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
class PythonTypeHintCallLinker(cpg: Cpg) extends XTypeHintCallLinker

Attributes

Graph
Supertypes
class XTypeHintCallLinker
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
class PythonTypeRecoveryPass(cpg: Cpg, config: XTypeRecoveryConfig) extends XTypeRecoveryPass[File]

Attributes

Graph
Supertypes
class XTypeRecoveryPass[File]
class CpgPass
class ForkJoinParallelCpgPass[AnyRef]
class NewStyleCpgPassBase[AnyRef]
trait CpgPassBase
class Object
trait Matchable
class Any
object PythonV2 extends PythonVersion

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object PythonV3 extends PythonVersion

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait PythonVersion

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object PythonV2.type
object PythonV2AndV3.type
object PythonV3.type