polyglot.types.reflect
Class ClassPathLoader
java.lang.Object
polyglot.types.reflect.ClassPathLoader
public class ClassPathLoader
- extends java.lang.Object
Polyglot has its own class loader just so
the classpath can be specified on the command line.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classpath
protected java.util.List classpath
loader
protected ClassFileLoader loader
verbose
protected static java.util.Collection verbose
ClassPathLoader
public ClassPathLoader(java.util.List classpath,
ClassFileLoader loader)
ClassPathLoader
public ClassPathLoader(java.lang.String classpath,
ClassFileLoader loader)
classpath
public java.lang.String classpath()
packageExists
public boolean packageExists(java.lang.String name)
loadClass
public ClassFile loadClass(java.lang.String name)
- Load a class from the classpath. If the class is not found, then
null
is returned.