io.joern.console.cpgcreation

Members list

Type members

Classlikes

case class CCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

C/C++ language frontend that translates C/C++ source files into code property graphs using Eclipse CDT parsing / preprocessing.

C/C++ language frontend that translates C/C++ source files into code property graphs using Eclipse CDT parsing / preprocessing.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class CSharpCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

C# language frontend. Translates C# project files into code property graphs.

C# language frontend. Translates C# project files into code property graphs.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
abstract class CpgGenerator()

A CpgGenerator generates Code Property Graphs from code. Each supported language implements a Generator, e.g., JavaCpgGenerator implements Java Archive to CPG conversion, while CSharpCpgGenerator translates C# projects into code property graphs.

A CpgGenerator generates Code Property Graphs from code. Each supported language implements a Generator, e.g., JavaCpgGenerator implements Java Archive to CPG conversion, while CSharpCpgGenerator translates C# projects into code property graphs.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
case class GhidraCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Language frontend for Ghidra - translates compiled binaries into Code Property Graphs.

Language frontend for Ghidra - translates compiled binaries into Code Property Graphs.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class GoCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Language frontend for Go code. Translates Go source code into Code Property Graphs.

Language frontend for Go code. Translates Go source code into Code Property Graphs.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
class ImportCode[T <: Project](console: Console[T])(implicit availableWidthProvider: AvailableWidthProvider) extends Reporting

Attributes

Supertypes
trait Reporting
class Object
trait Matchable
class Any
case class JavaCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Language frontend for Java archives (JAR files). Translates Java archives into code property graphs.

Language frontend for Java archives (JAR files). Translates Java archives into code property graphs.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class JavaSrcCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Source-based front-end for Java

Source-based front-end for Java

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class JsCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class JsSrcCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class KotlinCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Source-based front-end for Kotlin

Source-based front-end for Kotlin

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class LlvmCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Language frontend for LLVM. Translates LLVM bitcode into Code Property Graphs.

Language frontend for LLVM. Translates LLVM bitcode into Code Property Graphs.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class PhpCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class PyCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Proprietary language frontend for Python code.

Proprietary language frontend for Python code.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class PythonSrcCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class RubyCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all
case class SwiftSrcCpgGenerator(config: FrontendConfig, rootPath: Path) extends CpgGenerator

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class CpgGenerator
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def cpgGeneratorForLanguage(language: String, config: FrontendConfig, rootPath: Path, args: List[String]): Option[CpgGenerator]

For a given language, return CPG generator script

For a given language, return CPG generator script

Attributes

def guessLanguage(path: String): Option[String]

Heuristically determines language by inspecting file/dir at path.

Heuristically determines language by inspecting file/dir at path.

Attributes

def withFileInTmpFile(inputPath: String)(f: File => Try[String]): Try[String]