private final Set < Class < ? > > search ( Class < ? > clazz , URI location , String packageName ) throws MalformedURLException { if ( clazz == null || location == null ) { return new HashSet < Class < ? > > ( ) ; } File directory = new File ( location . toURL ( ) . getFile ( ) ) ; if ( directory . exists ( ) ) { return this . searchDirectory ( clazz , directory , location , packageName ) . keySet ( ) ; } else { return this . searchJar ( clazz , location ) . keySet ( ) ; } }
Returns all known subclasses for a given class location and package name