bsh.classpath
public class BshClassPath extends Object implements ClassPathListener, NameSource
| Nested Class Summary | |
|---|---|
| static class | BshClassPath.AmbiguousName |
| static class | BshClassPath.ClassSource |
| static class | BshClassPath.DirClassSource |
| static class | BshClassPath.JarClassSource |
| static interface | BshClassPath.MappingFeedback |
| Constructor Summary | |
|---|---|
| BshClassPath(String name) | |
| BshClassPath(String name, URL[] urls) | |
| Method Summary | |
|---|---|
| void | add(URL[] urls) |
| void | add(URL url) |
| void | addComponent(BshClassPath bcp)
Add the specified BshClassPath as a component of our path.
|
| void | addListener(ClassPathListener l) |
| static void | addMappingFeedback(BshClassPath.MappingFeedback mf) |
| void | addNameSourceListener(NameSource.Listener listener)
Implements NameSource
Add a listener who is notified upon changes to names in this space. |
| static String | canonicalizeClassName(String name)
Create a proper class name from a messy thing.
|
| void | classPathChanged() |
| String[] | getAllNames() |
| static BshClassPath | getBootClassPath()
Get the boot path including the lib/rt.jar if possible. |
| Set | getClassesForPackage(String pack)
Return the set of class names in the specified package
including all component paths. |
| String | getClassNameByUnqName(String name)
Support for super import "*";
Get the full name associated with the unqualified name in this
classpath. |
| BshClassPath.ClassSource | getClassSource(String className)
Return the source of the specified class
which may lie in component path |
| protected List | getFullPath()
Get the full path including component paths.
(component paths listed first, in order)
Duplicate path components are removed. |
| Set | getPackagesSet()
Get a list of all of the known packages |
| URL[] | getPathComponents()
Get the path components including any component paths. |
| static BshClassPath | getUserClassPath()
A BshClassPath initialized to the user path
from java.class.path |
| static URL[] | getUserClassPathComponents() |
| void | insureInitialized()
If the claspath map is not initialized, do it now.
|
| protected void | insureInitialized(boolean topPath) |
| static boolean | isArchiveFileName(String name) |
| static boolean | isClassFileName(String name) |
| static void | main(String[] args) |
| static Collection | removeInnerClassNames(Collection col)
Return a new collection without any inner class names |
| void | removeListener(ClassPathListener l) |
| void | setPath(URL[] urls) |
| static String[] | splitClassname(String classname)
Split class name into package and name |
| String | toString() |
Parameters: topPath indicates that this is the top level classpath component and it should send the startClassMapping message