SourceFiles

io.joern.x2cpg.SourceFiles
object SourceFiles

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def determine(inputPath: String, sourceFileExtensions: Set[String]): List[String]

For a given input path, determine all source files by inspecting filename extensions.

For a given input path, determine all source files by inspecting filename extensions.

Attributes

def determine(inputPath: String, sourceFileExtensions: Set[String], config: X2CpgConfig[_]): List[String]

For a given input path, determine all source files by inspecting filename extensions and filter the result according to the given config (by its ignoredFilesRegex and ignoredFiles).

For a given input path, determine all source files by inspecting filename extensions and filter the result according to the given config (by its ignoredFilesRegex and ignoredFiles).

Attributes

def determine(inputPaths: Set[String], sourceFileExtensions: Set[String], config: X2CpgConfig[_]): List[String]

For given input paths, determine all source files by inspecting filename extensions and filter the result according to the given config (by its ignoredFilesRegex and ignoredFiles).

For given input paths, determine all source files by inspecting filename extensions and filter the result according to the given config (by its ignoredFilesRegex and ignoredFiles).

Attributes

def determine(inputPaths: Set[String], sourceFileExtensions: Set[String]): List[String]

For a given array of input paths, determine all source files by inspecting filename extensions.

For a given array of input paths, determine all source files by inspecting filename extensions.

Attributes

def toAbsolutePath(path: String, rootPath: String): String

Constructs an absolute path against rootPath. If the given path is already absolute this path is returned unaltered. Otherwise, "rootPath / path" is returned.

Constructs an absolute path against rootPath. If the given path is already absolute this path is returned unaltered. Otherwise, "rootPath / path" is returned.

Attributes

def toRelativePath(path: String, rootPath: String): String

Constructs a relative path against rootPath. If the given path is not inside rootPath, path is returned unaltered. Otherwise, the path relative to rootPath is returned.

Constructs a relative path against rootPath. If the given path is not inside rootPath, path is returned unaltered. Otherwise, the path relative to rootPath is returned.

Attributes