|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.types.reflect.ClassFileLoader
public class ClassFileLoader
Polyglot has its own class loader just so the classpath can be specified on the command line.
| Field Summary | |
|---|---|
protected java.util.Map |
dirContentsCache
Directory contents cache. |
protected ExtensionInfo |
extensionInfo
The extension info |
protected static java.lang.Object |
not_found
|
protected java.util.Set |
packageCache
A cache of directories found in zip files. |
protected static java.util.Collection |
verbose
|
protected java.util.Map |
zipCache
Keep a cache of the zips and jars so we don't have to keep opening them from the file system. |
| Constructor Summary | |
|---|---|
ClassFileLoader(ExtensionInfo ext)
|
|
| Method Summary | |
|---|---|
ClassFile |
loadClass(java.io.File dir,
java.lang.String name)
Try to find the class name in the directory or jar or zip
file dir. |
boolean |
packageExists(java.io.File dir,
java.lang.String name)
Return true if the package name exists under the directory or file dir. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ExtensionInfo extensionInfo
protected java.util.Map zipCache
protected java.util.Set packageCache
protected java.util.Map dirContentsCache
protected static final java.lang.Object not_found
protected static java.util.Collection verbose
| Constructor Detail |
|---|
public ClassFileLoader(ExtensionInfo ext)
| Method Detail |
|---|
public boolean packageExists(java.io.File dir,
java.lang.String name)
dir.
public ClassFile loadClass(java.io.File dir,
java.lang.String name)
name in the directory or jar or zip
file dir.
If the class does not exist in the specified file/directory, then
null is returned.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||