Companion

Functions

Link copied to clipboard
fun classNamesInJarFile(jarFilePath: Path, includeInnerClasses: Boolean = true): Set<String>

Extracts the class names contained within the JAR file.

fun classNamesInJarFile(jar: JarFile, includeInnerClasses: Boolean = true): Set<String>

Extracts the class names contained within the JAR file. The supplied JAR file is not closed by the function.

Link copied to clipboard
fun findSubclasses(jarFilePath: Path, parentClass: Class<*>): List<String>

Lists all classes and subclasses in a JAR file for a given parent class using Kotlin reflection

Link copied to clipboard
fun findSubclassObjects(jarFilePath: Path, parentClass: Class<*>): List<Class<*>>

Alternative method that returns KClass objects instead of class names