public class PackageHelper extends Object
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static List<String> |
getClassNamesForPackage(String packageName, ClassLoader classLoader)Attempts to list all the class names in the specified package as determined by the Groovy class loader classpath |
|
public static List<Object> |
getClassesForPackage(String packageName, GroovyClassLoader classLoader, Function<String, Class<?>> classResolver)Attempts to list all the classes in the specified package as determined by the Groovy class loader classpath |
|
public static List<Object> |
getClassesForPackage(String packageName)Attempts to list all the classes in the specified package as determined by the context class loader |
|
public boolean |
hasMoreElements() |
|
public URL |
nextElement() |
Attempts to list all the class names in the specified package as determined by the Groovy class loader classpath
packageName - the package name to searchclassLoader - class loaderAttempts to list all the classes in the specified package as determined by the Groovy class loader classpath
packageName - the package name to searchclassLoader - Groovy class loaderclassResolver - resolve class from class nameAttempts to list all the classes in the specified package as determined by the context class loader
packageName - the package name to search