polyglot.types.reflect
Class ClassPathLoader
java.lang.Object
polyglot.types.reflect.ClassPathLoader
public class ClassPathLoader
- extends java.lang.Object
We implement our own class loader. All this pain is so
we can define the classpath on the command line.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.