TypeInfoCalculator

io.joern.javasrc2cpg.typesolvers.TypeInfoCalculator
See theTypeInfoCalculator companion object
class TypeInfoCalculator(global: Global, symbolResolver: SymbolResolver)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def fullName(typ: ResolvedType): Option[String]
def fullName(typ: ResolvedType, typeParamValues: ResolvedTypeParametersMap): Option[String]
def fullName(typ: Type): Option[String]
def fullName(decl: ResolvedDeclaration): Option[String]
def fullNameWithoutRegistering(typ: ResolvedType): Option[String]
def fullNameWithoutRegistering(decl: ResolvedDeclaration): Option[String]
def name(typ: ResolvedType): Option[String]
def name(typ: ResolvedType, typeParamValues: ResolvedTypeParametersMap): Option[String]
def name(typ: Type): Option[String]
def name(decl: ResolvedDeclaration): Option[String]
def registerType(typeName: String): String

Add typeName to a global map and return it. The map is later passed to a pass that creates TYPE nodes for each key in the map. Skip the ANY type, since this is created by default. TODO: I want the type registration not in here but for now it is the easiest.

Add typeName to a global map and return it. The map is later passed to a pass that creates TYPE nodes for each key in the map. Skip the ANY type, since this is created by default. TODO: I want the type registration not in here but for now it is the easiest.

Attributes