org.codehaus.janino
public final class JavaSourceIClassLoader extends IClassLoader
Notice that it does not compile them!
| Constructor Summary | |
|---|---|
| JavaSourceIClassLoader(ResourceFinder sourceFinder, String optionalCharacterEncoding, Set unitCompilers, IClassLoader optionalParentIClassLoader)
Notice that the unitCompilers set is both read and written
by the JavaSourceIClassLoader: As it searches for IClasses, it looks
into unitCompilers for class declarations, and as it opens,
scans and parses compilation units on-the-fly, it adds them to
unitCompilers. | |
| Method Summary | |
|---|---|
| IClass | findIClass(String type) |
| void | setCompileErrorHandler(UnitCompiler.ErrorHandler optionalCompileErrorHandler) |
| void | setWarningHandler(WarningHandler optionalWarningHandler) |
unitCompilers set is both read and written
by the JavaSourceIClassLoader: As it searches for IClasses, it looks
into unitCompilers for class declarations, and as it opens,
scans and parses compilation units on-the-fly, it adds them to
unitCompilers.Parameters: type field descriptor of the IClass to load, e.g. "Lpkg1/pkg2/Outer$Inner;"
Throws: ClassNotFoundException if an exception was raised while loading the IClass
See Also: UnitCompiler
See Also: setWarningHandler UnitCompiler