| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public abstract static class | |
| public static class | |
| public static class | |
| public static class | |
| public static interface | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static BshClassPath | |
| private Map | classSource
Map of source (URL or File dir) of every clas |
| private List | compPaths
Ordered list of components BshClassPaths |
| pack-priv Vector | |
| pack-priv static BshClassPath. | mappingFeedbackListener
only allow one for now |
| private boolean | mapsInitialized
The packageMap and classSource maps have been built. |
| pack-priv String | |
| private boolean | nameCompletionIncludesUnqNames
This used to be configurable, but now we always include them. |
| pack-priv List | |
| private Map | packageMap
Set of classes in a package mapped by package name |
| private List | path
The URL path components |
| private BshClassPath. | |
| pack-priv static BshClassPath | |
| pack-priv static URL[] | userClassPathComp
The user classpath from system property java.class.path |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public static void | |
| public void | addNameSourceListener(NameSource.
Implements bsh. |
| private BshClassPath. | |
| public static String | |
| pack-priv void | |
| public void | |
| private synchronized void | |
| pack-priv void | |
| pack-priv void | |
| public String[] | |
| public static BshClassPath | |
| public synchronized Set | getClassesForPackage(String pack)
Return the set of class names in the specified package including all component paths. |
| public String | getClassNameByUnqName(String name)
Support for super import "*"; Get the full name associated with the unqualified name in this classpath. |
| public synchronized BshClassPath. | getClassSource(String className)
Return the source of the specified class which may lie in component path. |
| protected List | |
| public Set | |
| public URL[] | |
| private static String | |
| private BshClassPath. | |
| public static BshClassPath | |
| public static URL[] | |
| public void | |
| protected synchronized void | insureInitialized(boolean
indicates that this is the top level classpath
component and it should send the startClassMapping message topPath)
|
| public static boolean | |
| public static boolean | |
| public static void | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| private void | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| public static Collection | |
| public void | |
| private synchronized void | |
| pack-priv static String[] | |
| public synchronized void | |
| public void | |
| public static String[] | |
| pack-priv void | |
| public String | |
| pack-priv static String[] | |
| pack-priv static List |
| bootClassPath | back to summary |
|---|---|
| pack-priv static BshClassPath bootClassPath | |
| classSource | back to summary |
|---|---|
| private Map<K, V> classSource Map of source (URL or File dir) of every clas | |
| compPaths | back to summary |
|---|---|
| private List<E> compPaths Ordered list of components BshClassPaths | |
| listeners | back to summary |
|---|---|
| pack-priv Vector<E> listeners | |
| mappingFeedbackListener | back to summary |
|---|---|
| pack-priv static BshClassPath. only allow one for now | |
| mapsInitialized | back to summary |
|---|---|
| private boolean mapsInitialized The packageMap and classSource maps have been built. | |
| name | back to summary |
|---|---|
| pack-priv String name | |
| nameCompletionIncludesUnqNames | back to summary |
|---|---|
| private boolean nameCompletionIncludesUnqNames This used to be configurable, but now we always include them. | |
| nameSourceListeners | back to summary |
|---|---|
| pack-priv List<E> nameSourceListeners | |
| packageMap | back to summary |
|---|---|
| private Map<K, V> packageMap Set of classes in a package mapped by package name | |
| path | back to summary |
|---|---|
| private List<E> path The URL path components | |
| unqNameTable | back to summary |
|---|---|
| private BshClassPath. | |
| userClassPath | back to summary |
|---|---|
| pack-priv static BshClassPath userClassPath | |
| userClassPathComp | back to summary |
|---|---|
| pack-priv static URL[] userClassPathComp The user classpath from system property java.class.path | |
| BshClassPath | back to summary |
|---|---|
| public BshClassPath(String name) | |
| BshClassPath | back to summary |
|---|---|
| public BshClassPath(String name, URL[] urls) | |
| add | back to summary |
|---|---|
| public void add(URL[] urls) | |
| add | back to summary |
|---|---|
| public void add(URL url) throws IOException | |
| addComponent | back to summary |
|---|---|
| public void addComponent(BshClassPath bcp) Add the specified BshClassPath as a component of our path. Changes in the bcp will be reflected through us. | |
| addListener | back to summary |
|---|---|
| public void addListener(ClassPathListener l) | |
| addMappingFeedback | back to summary |
|---|---|
| public static void addMappingFeedback(BshClassPath. | |
| addNameSourceListener | back to summary |
|---|---|
| public void addNameSourceListener(NameSource. Implements bsh. Implements NameSource Add a listener who is notified upon changes to names in this space. | |
| buildUnqualifiedNameTable | back to summary |
|---|---|
| private BshClassPath. | |
| canonicalizeClassName | back to summary |
|---|---|
| public static String canonicalizeClassName(String name) Create a proper class name from a messy thing. Turn / or \ into ., remove leading class and trailing .class Note this makes lots of strings... could be faster. | |
| classMapping | back to summary |
|---|---|
| pack-priv void classMapping(String msg) | |
| classPathChanged | back to summary |
|---|---|
| public void classPathChanged() Implements bsh. | |
| clearCachedStructures | back to summary |
|---|---|
| private synchronized void clearCachedStructures() Clear anything cached. All will be reconstructed as necessary. | |
| endClassMapping | back to summary |
|---|---|
| pack-priv void endClassMapping() | |
| errorWhileMapping | back to summary |
|---|---|
| pack-priv void errorWhileMapping(String s) | |
| getAllNames | back to summary |
|---|---|
| public String[] getAllNames() Implements bsh. | |
| getBootClassPath | back to summary |
|---|---|
| public static BshClassPath getBootClassPath() throws ClassPathException Get the boot path including the lib/rt.jar if possible. | |
| getClassesForPackage | back to summary |
|---|---|
| public synchronized Set Return the set of class names in the specified package including all component paths. | |
| getClassNameByUnqName | back to summary |
|---|---|
| public String getClassNameByUnqName(String name) throws ClassPathException Support for super import "*"; Get the full name associated with the unqualified name in this classpath. Returns either the String name or an AmbiguousName object encapsulating the various names. | |
| getClassSource | back to summary |
|---|---|
| public synchronized BshClassPath. Return the source of the specified class which may lie in component path. | |
| getFullPath | back to summary |
|---|---|
| protected List Get the full path including component paths. (component paths listed first, in order) Duplicate path components are removed. | |
| getPackagesSet | back to summary |
|---|---|
| public Set Get a list of all of the known packages | |
| getPathComponents | back to summary |
|---|---|
| public URL[] getPathComponents() Get the path components including any component paths. | |
| getRTJarPath | back to summary |
|---|---|
| private static String getRTJarPath() | |
| getUnqualifiedNameTable | back to summary |
|---|---|
| private BshClassPath. | |
| getUserClassPath | back to summary |
|---|---|
| public static BshClassPath getUserClassPath() throws ClassPathException A BshClassPath initialized to the user path from java.class.path | |
| getUserClassPathComponents | back to summary |
|---|---|
| public static URL[] getUserClassPathComponents() throws ClassPathException | |
| insureInitialized | back to summary |
|---|---|
| public void insureInitialized() If the claspath map is not initialized, do it now. If component maps are not do them as well... Random note: Should this be "insure" or "ensure". I know I've seen "ensure" used in the JDK source. Here's what Webster has to say: Main Entry:ensure Pronunciation:in-'shur Function:transitive verb Inflected Form(s):ensured; ensuring : to make sure, certain, or safe : GUARANTEE synonyms ENSURE, INSURE, ASSURE, SECURE mean to make a thing or person sure. ENSURE, INSURE, and ASSURE are interchangeable in many contexts where they indicate the making certain or inevitable of an outcome, but INSURE sometimes stresses the taking of necessary measures beforehand, and ASSURE distinctively implies the removal of doubt and suspense from a person's mind. SECURE implies action taken to guard against attack or loss. | |
| insureInitialized | back to summary |
|---|---|
protected synchronized void insureInitialized(boolean topPath)
| |
| isArchiveFileName | back to summary |
|---|---|
| public static boolean isArchiveFileName(String name) | |
| isClassFileName | back to summary |
|---|---|
| public static boolean isClassFileName(String name) | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws Exception | |
| map | back to summary |
|---|---|
| pack-priv synchronized void map(URL[] urls) call map(url) for each url in the array | |
| map | back to summary |
|---|---|
| pack-priv synchronized void map(URL url) throws IOException | |
| map | back to summary |
|---|---|
| private void map(String[] classes, Object source) | |
| mapClass | back to summary |
|---|---|
| private void mapClass(String className, Object source) | |
| nameSpaceChanged | back to summary |
|---|---|
| pack-priv void nameSpaceChanged() Fire the NameSourceListeners | |
| notifyListeners | back to summary |
|---|---|
| pack-priv void notifyListeners() | |
| removeInnerClassNames | back to summary |
|---|---|
| public static Collection Return a new collection without any inner class names | |
| removeListener | back to summary |
|---|---|
| public void removeListener(ClassPathListener l) | |
| reset | back to summary |
|---|---|
| private synchronized void reset() Clear everything and reset the path to empty. | |
| searchJarForClasses | back to summary |
|---|---|
| pack-priv static String[] searchJarForClasses(URL jar) throws IOException Get the class file entries from the Jar | |
| setClassSource | back to summary |
|---|---|
| public synchronized void setClassSource(String className, BshClassPath. Explicitly set a class source. This is used for generated classes, but could potentially be used to allow a user to override which version of a class from the classpath is located. | |
| setPath | back to summary |
|---|---|
| public void setPath(URL[] urls) | |
| splitClassname | back to summary |
|---|---|
| public static String[] splitClassname(String classname) Split class name into package and name | |
| startClassMapping | back to summary |
|---|---|
| pack-priv void startClassMapping() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| traverseDirForClasses | back to summary |
|---|---|
| pack-priv static String[] traverseDirForClasses(File dir) throws IOException | |
| traverseDirForClassesAux | back to summary |
|---|---|
| pack-priv static List | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public List |
| list | back to summary |
|---|---|
| pack-priv List<E> list | |
| AmbiguousName | back to summary |
|---|---|
| public AmbiguousName() | |
| add | back to summary |
|---|---|
| public void add(String name) | |
| get | back to summary |
|---|---|
| public List | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract byte[] |
| source | back to summary |
|---|---|
| pack-priv Object source | |
| ClassSource | back to summary |
|---|---|
| public ClassSource() | |
| getCode | back to summary |
|---|---|
| pack-priv abstract byte[] getCode(String className) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public File | |
| public static byte[] | |
| public String |
| DirClassSource | back to summary |
|---|---|
| pack-priv DirClassSource(File dir) | |
| getCode | back to summary |
|---|---|
| public byte[] getCode(String className) Implements abstract bsh. | |
| getDir | back to summary |
|---|---|
| public File getDir() | |
| readBytesFromFile | back to summary |
|---|---|
| public static byte[] readBytesFromFile(File base, String className) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] |
| GeneratedClassSource | back to summary |
|---|---|
| pack-priv GeneratedClassSource(byte[] bytecode) | |
| getCode | back to summary |
|---|---|
| public byte[] getCode(String className) Implements abstract bsh. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| JarClassSource | back to summary |
|---|---|
| pack-priv JarClassSource(URL url) | |
| getCode | back to summary |
|---|---|
| public byte[] getCode(String className) Implements abstract bsh. | |
| getURL | back to summary |
|---|---|
| public URL getURL() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void |
| classMapping | back to summary |
|---|---|
| public void classMapping(String msg) Provide feedback on the progress of mapping the classpath | |
| endClassMapping | back to summary |
|---|---|
| public void endClassMapping() | |
| errorWhileMapping | back to summary |
|---|---|
| public void errorWhileMapping(String msg) | |
| startClassMapping | back to summary |
|---|---|
| public void startClassMapping() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void |
| UnqualifiedNameTable | back to summary |
|---|---|
| pack-priv UnqualifiedNameTable() | |
| add | back to summary |
|---|---|
| pack-priv void add(String fullname) | |