SourceParser

io.joern.javasrc2cpg.util.SourceParser
See theSourceParser companion object
class SourceParser(val relativeFilenames: List[String], analysisRoot: Path, typesRoot: Path, dirToDelete: Option[Path])

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def cleanupDelombokOutput(): Unit
def parseAnalysisFile(relativeFilename: String, saveFileContent: Boolean): Option[(CompilationUnit, Option[String])]

Parse the given file into a JavaParser CompliationUnit that will be used for creating the CPG AST.

Parse the given file into a JavaParser CompliationUnit that will be used for creating the CPG AST.

Value parameters

relativeFilename

path to the input file relative to the project root.

saveFileContent

if true, the raw text for the file is returned as the second item in the tuple.

Attributes

def parseTypesFile(relativeFilename: String): Option[CompilationUnit]

Parse the given file into a JavaParser CompliationUnit that will be used for reading type information. These should not be used for determining the structure of the AST.

Parse the given file into a JavaParser CompliationUnit that will be used for reading type information. These should not be used for determining the structure of the AST.

Value parameters

relativeFilename

path to the input file relative to the project root.

Attributes

Concrete fields

val relativeFilenames: List[String]