src/main/java/de/vandermeer/execs/cf/CF.java
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();
		}
	}
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();
		}
	}
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
@param clazz class to search for
@param location a URL to look into
@param packageName a package name
@return all found subclasses in location, empty set of none found
@throws MalformedURLException
Returns all known subclasses for a given class location and package name