Kotlin2Cpg

io.joern.kotlin2cpg.Kotlin2Cpg
See theKotlin2Cpg companion object
class Kotlin2Cpg extends X2CpgFrontend, UsesService

Attributes

Companion
object
Graph
Supertypes
trait UsesService
trait X2CpgFrontend
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

override type ConfigType = Config

Value members

Concrete methods

def createCpg(config: Config): 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. To be provided by the frontend.

Create a CPG according to given configuration. Returns CPG wrapped in a Try, making it possible to detect and inspect exceptions in CPG generation. To be provided by the frontend.

Attributes

Inherited methods

override def close(): Unit

For frontends that create and manage resources during AST generation, they can clean up these resources here.

For frontends that create and manage resources during AST generation, they can clean up these resources here.

Attributes

Definition Classes
X2CpgFrontend -> AutoCloseable
Inherited from:
X2CpgFrontend
def createCpgWithOverlays(config: ConfigType): Try[Cpg]

Create a CPG with default overlays according to given configuration

Create a CPG with default overlays according to given configuration

Attributes

Inherited from:
X2CpgFrontend
protected def dependenciesFromService(service: Service, importNames: Seq[String]): Seq[String]

Attributes

Inherited from:
UsesService
protected def reachableServiceMaybe(serviceUrl: String): Option[Service]

Attributes

Inherited from:
UsesService
def run(config: ConfigType): 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

Concrete fields

override val defaultConfig: Config