|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ClassLoader
org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
org.codehaus.commons.compiler.jdk.JavaSourceClassLoader
public class JavaSourceClassLoader
A ClassLoader that loads classes by looking for their source files through a 'source path' and compiling
them on-the-fly.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader |
|---|
AbstractJavaSourceClassLoader.ProtectionDomainFactory |
| Field Summary |
|---|
| Fields inherited from class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader |
|---|
optionalProtectionDomainFactory |
| Constructor Summary | |
|---|---|
JavaSourceClassLoader()
|
|
JavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.codehaus.commons.compiler.AbstractJavaSourceClassLoader |
|---|
main, setProtectionDomainFactory |
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaSourceClassLoader()
ICompilerFactory.newJavaSourceClassLoader()public JavaSourceClassLoader(java.lang.ClassLoader parentClassLoader)
ICompilerFactory.newJavaSourceClassLoader(ClassLoader)| Method Detail |
|---|
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 encoding
public 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 tool
protected java.lang.Class<?> findClass(java.lang.String className)
throws java.lang.ClassNotFoundException
ClassLoader.findClass(String).
findClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundException
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||