public interface ISimpleCompiler extends ICookable
Opposed to a normal ".java" file, you can declare multiple public classes here.
To set up an ISimpleCompiler object, proceed as follows:
ISimpleCompiler-implementing object
ICookable.setParentClassLoader(ClassLoader).
ICookable.cook(String, Reader) methods to scan, parse, compile and load the compilation
unit into the JVM.
getClassLoader() to obtain a ClassLoader that you can use to access the compiled classes.
BOOT_CLASS_LOADER, SYSTEM_PROPERTY_SOURCE_DEBUGGING_DIR, SYSTEM_PROPERTY_SOURCE_DEBUGGING_ENABLE| Modifier and Type | Method and Description |
|---|---|
java.lang.ClassLoader |
getClassLoader()
Returns a
ClassLoader object through which the previously compiled classes can be accessed. |
java.lang.ClassLoader getClassLoader()
ClassLoader object through which the previously compiled classes can be accessed. This ClassLoader can be used for subsequent ISimpleCompilers in order to compile compilation units that use
types (e.g. declare derived types) declared in the previous one.
This method must only be called after exactly on of the ICookable.cook(String, java.io.Reader) methods was called.