X2CpgMain

io.joern.x2cpg.X2CpgMain
abstract class X2CpgMain[T <: X2CpgConfig[T], X <: X2CpgFrontend[_]](cmdLineParser: OParser[Unit, T], frontend: X)(implicit defaultConfig: T) extends App

Base class for Main classes of CPG frontends.

Main classes that inherit from this base class parse the command line, exiting with an error code if this does not succeed. On success, the method run is called, which evaluates, given a frontend and a configuration, creates the CPG and stores it on disk.

Attributes

cmdLineParser

parser for command line arguments

frontend

the frontend to use for CPG creation

Graph
Supertypes
trait App
trait DelayedInit
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def run(config: T, frontend: X): Unit

method that evaluates frontend with configuration

method that evaluates frontend with configuration

Attributes

Inherited methods

final protected def args: Array[String]

Attributes

Inherited from:
App
final def main(args: Array[String]): Unit

Attributes

Inherited from:
App

Deprecated and Inherited methods

override def delayedInit(body: => Unit): Unit

Attributes

Deprecated
[Since version 2.11.0] the delayedInit mechanism will disappear
Definition Classes
App -> DelayedInit
Inherited from:
App