public class ClassDirectory
extends java.lang.Object
Directory to look up where classes might be found. It loads lists of classes from META-INF/classes.lst and exposes them for use in resolving unresolved imports.
Modifier and Type | Method and Description |
---|---|
static ClassDirectory |
forClassLoader(java.lang.ClassLoader loader)
Get a class directory for a specific class loader.
|
static ClassDirectory |
forCurrentClassLoader()
Get a class directory for the current thread’s class loader.
|
java.util.Set<java.lang.String> |
getPackages(java.lang.String name)
Get the packages that contain a class with the specified name.
|
public static ClassDirectory forCurrentClassLoader()
Get a class directory for the current thread’s class loader.
public static ClassDirectory forClassLoader(java.lang.ClassLoader loader)
Get a class directory for a specific class loader.
loader
- The class loader.public java.util.Set<java.lang.String> getPackages(java.lang.String name)
Get the packages that contain a class with the specified name.
name
- The name to look for.