public class JavaSourceClassLoader extends AbstractJavaSourceClassLoader
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaSourceClassLoader.DiagnosticException |
AbstractJavaSourceClassLoader.ProtectionDomainFactoryoptionalProtectionDomainFactory| Constructor and Description |
|---|
JavaSourceClassLoader() |
JavaSourceClassLoader(java.lang.ClassLoader parentClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class<?> |
findClass(java.lang.String className)
Implementation of
ClassLoader.findClass(String). |
void |
setCompilerOptions(java.lang.String[] compilerOptions)
Notice: Don't use the '-g' options - these are controlled through
setDebuggingInfo(boolean, boolean,
boolean). |
void |
setDebuggingInfo(boolean lines,
boolean vars,
boolean source) |
void |
setSourceFileCharacterEncoding(java.lang.String optionalCharacterEncoding) |
void |
setSourcePath(java.io.File[] sourcePath) |
main, setProtectionDomainFactoryclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic JavaSourceClassLoader()
public JavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
public void setSourcePath(java.io.File[] sourcePath)
setSourcePath in class AbstractJavaSourceClassLoadersourcePath - The sequence of directories to search for Java™ source filespublic void setSourceFileCharacterEncoding(java.lang.String optionalCharacterEncoding)
setSourceFileCharacterEncoding in class AbstractJavaSourceClassLoaderoptionalCharacterEncoding - if null, use platform default encodingpublic void setDebuggingInfo(boolean lines,
boolean vars,
boolean source)
setDebuggingInfo in class AbstractJavaSourceClassLoaderlines - Whether line number debugging information should be generatedvars - Whether variables debugging information should be generatedsource - Whether source file debugging information should be generatedpublic void setCompilerOptions(java.lang.String[] compilerOptions)
setDebuggingInfo(boolean, boolean,
boolean).compilerOptions - All command line options supported by the JDK JAVAC toolprotected java.lang.Class<?> findClass(java.lang.String className)
throws java.lang.ClassNotFoundException
ClassLoader.findClass(String).findClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundException