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], ignoredDefaultRegex: Option[Seq[Regex]], ignoredFilesRegex: Option[Regex], ignoredFilesPath: Option[Seq[String]])(implicit visitOptions: VisitOptions): List[String]

For given input paths, determine all source files by inspecting filename extensions and filter the result if following arguments ignoredDefaultRegex, ignoredFilesRegex and ignoredFilesPath are used

For given input paths, determine all source files by inspecting filename extensions and filter the result if following arguments ignoredDefaultRegex, ignoredFilesRegex and ignoredFilesPath are used

Attributes

def determine(inputPaths: Set[String], sourceFileExtensions: Set[String])(implicit visitOptions: VisitOptions): 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 filterFile(file: String, inputPath: String, ignoredDefaultRegex: Option[Seq[Regex]], ignoredFilesRegex: Option[Regex], ignoredFilesPath: Option[Seq[String]]): Boolean

Method to filter file based on the passed parameters

Method to filter file based on the passed parameters

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