SourceParser

io.joern.javasrc2cpg.util.SourceParser
See theSourceParser companion object
class SourceParser

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def doesTypesFileExist(relativeFilename: String): Boolean
def fileIfExists(filename: String): Option[File]
def getTypesFileLines(relativeFilename: String): Try[Iterable[String]]
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.

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