object X2Cpg
- Alphabetic
- By Inheritance
- X2Cpg
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def applyDefaultOverlays(cpg: Cpg): Unit
For a CPG generated by a frontend, run the default passes that turn a frontend-CPG into a complete CPG.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def defaultOverlayCreators(): List[LayerCreator]
This should be the only place where we define the list of default overlays.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newEmptyCpg(optionalOutputPath: Option[String] = None): Cpg
Create an empty CPG, backed by the file at
optionalOutputPathor in-memory ifoptionalOutputPathis empty. - final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def parseCommandLine[R <: X2CpgConfig[R]](args: Array[String], frontendSpecific: OParser[_, R], initialConf: R): Option[R]
Parse commands line arguments in
argsusing an X2Cpg command line parser, extended with the frontend specific options infrontendSpecificwith the initial configuration set toinitialConf.Parse commands line arguments in
argsusing an X2Cpg command line parser, extended with the frontend specific options infrontendSpecificwith the initial configuration set toinitialConf. On success, the configuration is returned wrapped into an Option. On failure, error messages are printed and,Noneis returned. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withErrorsToConsole[T <: X2CpgConfig[_]](config: T)(f: (T) => Try[_]): Try[_]
Given a function that receives a configuration and returns an arbitrary result type wrapped in a
Try, evaluate the function, printing errors to the console. - def withNewEmptyCpg[T <: X2CpgConfig[_]](outPath: String, config: T)(applyPasses: (Cpg, T) => Unit): Try[Cpg]
Apply function
applyPassesto a newly created CPG.Apply function
applyPassesto a newly created CPG. The CPG is wrapped in aTryand returned. On failure, the CPG is ensured to be closed. - def writeCodeToFile(sourceCode: String, tmpDirPrefix: String, suffix: String): File
Write
sourceCodeto a temporary file inside a temporary directory.Write
sourceCodeto a temporary file inside a temporary directory. The prefix for the temporary directory is given bytmpDirPrefix. The suffix for the temporary file is given bysuffix. Both file and directory are deleted on exit.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated