X2CpgFrontend

trait X2CpgFrontend[T <: X2CpgConfig[_]]
class Object
trait Matchable
class Any

Value members

Abstract methods

def createCpg(config: T): Try[Cpg]

Create a CPG according to given configuration. Returns CPG wrapped in a Try, making it possible to detect and inspect exceptions in CPG generation.

Create a CPG according to given configuration. Returns CPG wrapped in a Try, making it possible to detect and inspect exceptions in CPG generation.

Concrete methods

def createCpg(inputNames: List[String], outputName: Option[String])(implicit defaultConfig: T): Try[Cpg]

Create a CPG for code at inputNames 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 inputNames with default frontend configuration. If outputName exists, it is the file name of the resulting CPG. Otherwise, the CPG is held in memory.

def createCpg(inputName: String, outputName: Option[String])(implicit defaultConfig: T): 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.

def createCpg(inputName: String)(implicit defaultConfig: T): Try[Cpg]
def createCpg(inputNames: List[String])(implicit defaultConfig: T): Try[Cpg]
def run(config: T): Unit

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

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