MethodRefLinker

class MethodRefLinker(cpg: Cpg) extends CpgPass

This pass has MethodStubCreator and TypeDeclStubCreator as prerequisite for language frontends which do not provide method stubs and type decl stubs.

Companion
object
class CpgPass
trait CpgPassBase
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def run(): Iterator[DiffGraph]
Definition Classes
CpgPass

Inherited methods

override
def createAndApply(): Unit

Execute the pass and apply result to the underlying graph

Execute the pass and apply result to the underlying graph

Definition Classes
CpgPass -> CpgPassBase
Inherited from
CpgPass
def createApplyAndSerialize(inverse: Boolean): Iterator[GeneratedMessageV3]

Execute and create a serialized overlay

Execute and create a serialized overlay

Value Params
inverse

invert the diffgraph before serializing

Inherited from
CpgPass
override
def createApplySerializeAndStore(serializedCpg: SerializedCpg, inverse: Boolean, prefix: String): Unit

Run a CPG pass to create diff graphs, apply diff graphs, create corresponding overlays and add them to the serialized CPG. The name of the overlay is derived from the class name of the pass.

Run a CPG pass to create diff graphs, apply diff graphs, create corresponding overlays and add them to the serialized CPG. The name of the overlay is derived from the class name of the pass.

Value Params
inverse

invert the diffgraph before serializing

prefix

a prefix to add to the output name

serializedCpg

the destination serialized CPG to add overlays to

Definition Classes
CpgPass -> CpgPassBase
Inherited from
CpgPass
def name: String

Name of the pass. By default it is inferred from the name of the class, override if needed.

Name of the pass. By default it is inferred from the name of the class, override if needed.

Inherited from
CpgPassBase