ProgramSummary

io.joern.x2cpg.datastructures.ProgramSummary
See theProgramSummary companion object
trait ProgramSummary[T <: TypeLike[_, _]]

A hierarchical data-structure that stores the result of types and their respective members. These types can be sourced from pre-parsing the application, or pre-computed stubs of common libraries.

The utility of this object is in assisting resolving shorthand types during AST creation.

Type parameters

T

the type/class meta data class.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def matchingTypes(typeName: String): List[T]

Value parameters

typeName

the type name or full name. Can be partially qualified.

Attributes

Returns

the set of matching types' meta data.

def namespaceFor(clazz: T): Option[String]

For a type, will search for the associated namespace.

For a type, will search for the associated namespace.

Attributes

def typesUnderNamespace(namespace: String): Set[T]

For the given namespace, returns the declared types.

For the given namespace, returns the declared types.

Attributes