ProgramHandlingUtil

io.joern.jimple2cpg.util.ProgramHandlingUtil$

Responsible for handling JAR unpacking and handling the temporary build directory.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def clean(): Unit

Removes all files in the temporary unpacking directory.

Removes all files in the temporary unpacking directory.

Attributes

def extractSourceFilesFromArchive(sourceCodeDir: String, archiveFileExtensions: Set[String]): List[String]

Retrieve parseable files from archive types.

Retrieve parseable files from archive types.

Attributes

def getUnpackingDir: Path

Returns the temporary directory used to unpack and analyze projects in. This allows us to lazily create the unpacking directory.

Returns the temporary directory used to unpack and analyze projects in. This allows us to lazily create the unpacking directory.

Attributes

Returns:

the path pointing to the unpacking directory.

def moveClassFiles(files: List[String]): List[String]

Inspects class files and moves them to the temp directory based on their package path.

Inspects class files and moves them to the temp directory based on their package path.

Attributes

files

the class files to move.

Returns:

the list of class files at their new locations.

def unzipArchive(zf: ZipFile, sourceCodePath: String): List[String]

Unzips a ZIP file into a sequence of files. All files unpacked are deleted at the end of CPG construction.

Unzips a ZIP file into a sequence of files. All files unpacked are deleted at the end of CPG construction.

Attributes

sourceCodePath

The project root path to unpack to.

zf

The ZIP file to extract.