Main

io.joern.swiftsrc2cpg.Main
object Main extends X2CpgMain[Config, SwiftSrc2Cpg], FrontendHTTPServer[Config, SwiftSrc2Cpg]

Attributes

Graph
Supertypes
trait FrontendHTTPServer[Config, SwiftSrc2Cpg]
class X2CpgMain[Config, SwiftSrc2Cpg]
class Object
trait Matchable
class Any
Self type
Main.type

Members list

Value members

Concrete methods

def run(config: Config, swiftsrc2cpg: SwiftSrc2Cpg): Unit

method that evaluates frontend with configuration

method that evaluates frontend with configuration

Attributes

Inherited methods

def main(args: Array[String]): Unit

Attributes

Inherited from:
X2CpgMain
def startup(): Int

Starts the HTTP server.

Starts the HTTP server.

This method initializes the underlyingServer, sets the executor, and adds the appropriate contexts using the FrontendHTTPHandler. It then starts the server and prints the server's port to stdout. Additionally, a shutdown hook is added to ensure that the server is properly stopped when the application is terminated.

Attributes

Returns

The port this server is bound to which is chosen randomly until success (default number of attempts: 10)

Inherited from:
FrontendHTTPServer
def stop(): Unit

Stops the underlying HTTP server if it is running.

Stops the underlying HTTP server if it is running.

This method checks if the underlyingServer is defined and, if so, stops the server. It also logs a debug message indicating that the server has been stopped. If the server is not running, this method does nothing.

Attributes

Inherited from:
FrontendHTTPServer

Inherited fields

val cmdLineParser: OParser[Unit, Config]

Attributes

Inherited from:
X2CpgMain

Attributes

Inherited from:
X2CpgMain