GlobalCache

object GlobalCache: Any

A cache to reduce read calls to the database.

Methods

addSootAssoc

fun addSootAssoc(sootObject: Any, node: NewNodeBuilder, index: Int)

Associates the given Soot object to the given NewNode.

Parameters

Name Description
sootObject: Any

The object from a Soot BriefUnitGraph to associate from.

node: NewNodeBuilder

The NewNode to associate to.

index: Int

The index to place the associated NewNode at.

ReturnValue

Name Description
Unit

addSootAssoc

fun addSootAssoc(sootObject: Any, nodes: MutableList<NewNodeBuilder>, index: Int)

Associates the given Soot object to the given list of NewNodes.

Parameters

Name Description
sootObject: Any

The object from a Soot BriefUnitGraph to associate from.

nodes: MutableList<NewNodeBuilder>

The list of NewNodes to associate to.

index: Int

The index to place the associated PlumeVertex at.

ReturnValue

Name Description
Unit

getSootAssoc

fun getSootAssoc(sootObject: Any): List<NewNodeBuilder>?

Retrieves the list of NewNode associations to the given Soot object.

Parameters

Name Description
sootObject: Any

The object from a Soot BriefUnitGraph to get associations from.

ReturnValue

Name Description
List<NewNodeBuilder>?

putFileHash

fun putFileHash(cls: SootClass, hash: String)

Associates the given SootClass with its source file's hash.

Parameters

Name Description
cls: SootClass

The SootClass to associate.

hash: String

The hash for the file's contents.

ReturnValue

Name Description
Unit

getFileHash

fun getFileHash(cls: SootClass): String?

Retrieves the original file's hash from the given SootClass.

Parameters

Name Description
cls: SootClass

The representative SootClass.

ReturnValue

Name Description
String?

saveCallEdge

fun saveCallEdge(fullName: String, call: NewCallBuilder)

Saves call graph edges to the NewMethod from the NewCallBuilder.

Parameters

Name Description
fullName: String

The method full name.

call: NewCallBuilder

The source NewCallBuilder.

ReturnValue

Name Description
Unit

getCallEdgeIn

fun getCallEdgeIn(fullName: String): MutableList<NewCallBuilder>?

Retrieves all the incoming NewCalls from the given NewMethod.

Parameters

Name Description
fullName: String

The method full name.

ReturnValue

Name Description
MutableList<NewCallBuilder>?

clear

fun clear()

ReturnValue

Name Description
Unit