SourceFiles

io.joern.x2cpg.SourceFiles$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

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(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 retrieveLineSeparator(filePath: String): String

For the given file at filePath determine the line separator used.

For the given file at filePath determine the line separator used.

Note: the current systems line separator (returned by System.getProperty("line.separator")) can not be used as the file could have been written by another app on another operating system.

We only read until the first occurrence of a line break as that is sufficient and should not hinder performance too much.

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