ClassPath models a Java classpath to resolve package names to types. Since the standard Java APIs don't expose this, we have go thru a lot of pain.
Slots
- classesSource
-
List of classes keyed by package name in class path
- jarsSource
-
const File[] jars
Jar files to search
-
private Str:Str[] loadClasses()
Load the map of package:class[] by walking every jar file
-
private Void loadJar(Str:Str[] acc, File f)
Load the map of package:class[] by walking entries in jar file
- mainSource
-
static Void main()
- makeSource
-
new make(File[] jars)
Make for current set of jars.
- makeForCurrentSource
-
static ClassPath makeForCurrent()
Attempt to derive the current classpath by looking at system properties.
- toStrSource
-
override Str toStr()
Overrides sys::Obj.toStr
Return list of jar files.