Inherits URLClassLoader.
|
| QoreURLClassLoader (ClassLoader parent) |
| constructor for using this class as the boot classloader
|
|
| QoreURLClassLoader () |
| constructor for using this class as the boot classloader for the module
|
|
| QoreURLClassLoader (long p_ptr) |
| constructor for using this class as the boot classloader for the module
|
|
| QoreURLClassLoader (long p_ptr, ClassLoader parent) |
| constructor with a QoreProgram pointer and a parent
|
|
| QoreURLClassLoader (String name, ClassLoader parent) |
| constructor with a name and a parent
|
|
void | add (final String qualifiedClassName, final QoreJavaFileObject javaFile) |
|
Collection< QoreJavaFileObject > | files () |
|
void | addPendingClass (String bin_name, byte[] byte_code) |
| adds byte code for an inner class to the byte code cache; requires a binary name (ex: my.package.MyClass$1 )
|
|
Class<?> | checkLoadedClass (String bin_name) |
|
Class<?> | loadClass (String bin_name) throws ClassNotFoundException |
|
Class<?> | loadClassWithPtr (String bin_name, long class_ptr) throws ClassNotFoundException |
| Returns the Java class from the given Qore class with a Qore class ptr.
|
|
void | addPath (String classpath) |
| Adds a path to the classpath.
|
|
ArrayList< String > | getClassesInNamespace (String packageName) |
| Returns a list of classes in the given dynamic package.
|
|
void | addWildcard (File dir, String nam) |
|
void | clearCompilationCache () |
|
Main ClassLoader for Java <-> Qore and Java <-> Python integration.
This ClassLoader supports dynamic imports from Qore and Java using the following special packages:
python.
[path...]: indicates that the given path should be imported from Python to Java (after being imported to Qore if necessary).
pythonmod.
mod.
[path...]: indicates that the given path should be mapped to Qore namespaces and/or classes after loading the Python module mod and importing into Qore; the Java package segments after pythonmod.
mod.
are then converted to the equivalent Qore namespace path
qore: indicates
that the given path should be mapped to Qore namespaces and/or classes; the Java package segments after qore.
are then converted to the equivalent Qore namespace path
qoremod.
mod.
[path...]: indicates that the given path should be mapped to Qore namespaces and/or classes after loading the Qore module mod; the Java package segments after qoremod.
mod.
are then converted to the equivalent Qore namespace path