/** * Get the names of all subclasses of the named class. * * @param superclassName * The name of the superclass. * @return The sorted list of the names of matching subclasses, or the empty list if none. */ public List<String> getNamesOfSubclassesOf(final String superclassName) { return classGraphBuilder.getNamesOfSubclassesOf(superclassName); }
/** * Get the names of classes on the classpath that extend the specified superclass. * * @param superclass * The superclass to match (i.e. the class that subclasses need to extend to match). * @return The sorted list of the names of matching subclasses, or the empty list if none. */ public List<String> getNamesOfSubclassesOf(final Class<?> superclass) { return classGraphBuilder.getNamesOfSubclassesOf(scanSpec.getStandardClassName(superclass)); }