findSubclasses

fun findSubclasses(jarFilePath: Path, parentClass: Class<*>): List<String>(source)

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

Return

Set of class names that extend or implement the parent class

Parameters

jarFilePath

Path to the JAR file

parentClass

The parent KClass to search for subclasses