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

Type members

Classlikes

sealed class ClassFile(val file: File, val packagePath: Option[String])

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object ClassFile

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
ClassFile.type
sealed class Entry(entry: Either[File, ZipEntry], parentArchive: Option[ZipFile])

Common properties of a File and ZipEntry, used to determine whether a file in a directory or an entry in an archive is worth emitting/extracting

Common properties of a File and ZipEntry, used to determine whether a file in a directory or an entry in an archive is worth emitting/extracting

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def extractClassesInPackageLayout(src: File, destDir: File, isClass: Entry => Boolean, isArchive: Entry => Boolean, recurse: Boolean, depth: Int): List[ClassFile]

Find

Find

.class

files, including those inside archives and copy them to their package path location relative to destDir

Value parameters

depth

Maximum depth of recursion

destDir

The directory in which to place the class files

isArchive

Whether an entry is an archive to extract

isClass

Whether an entry is a class file

recurse

Whether to unpack recursively

src

The file/directory to search.

Attributes

Returns

The copied class files in destDir