Class JavaSourceClassLoader
java.lang.Object
java.lang.ClassLoader
org.codehaus.commons.compiler.AbstractJavaSourceClassLoader
org.codehaus.commons.compiler.jdk.JavaSourceClassLoader
-
Nested Class Summary
Nested ClassesNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
Implementation ofClassLoader.findClass(String)
.void
setCompilerOptions
(String[] compilerOptions) Notice: Don't use the '-g' options - these are controlled throughsetDebuggingInfo(boolean, boolean, boolean)
.void
setDebuggingInfo
(boolean lines, boolean vars, boolean source) void
setSourceFileCharacterEncoding
(String optionalCharacterEncoding) void
setSourcePath
(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, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
JavaSourceClassLoader
public JavaSourceClassLoader() -
JavaSourceClassLoader
-
-
Method Details
-
setSourcePath
- Specified by:
setSourcePath
in classAbstractJavaSourceClassLoader
- Parameters:
sourcePath
- The sequence of directories to search for Java™ source files
-
setSourceFileCharacterEncoding
- Specified by:
setSourceFileCharacterEncoding
in classAbstractJavaSourceClassLoader
- Parameters:
optionalCharacterEncoding
- ifnull
, use platform default encoding
-
setDebuggingInfo
public void setDebuggingInfo(boolean lines, boolean vars, boolean source) - Specified by:
setDebuggingInfo
in classAbstractJavaSourceClassLoader
- Parameters:
lines
- Whether line number debugging information should be generatedvars
- Whether variables debugging information should be generatedsource
- Whether source file debugging information should be generated
-
setCompilerOptions
Notice: Don't use the '-g' options - these are controlled throughsetDebuggingInfo(boolean, boolean, boolean)
.- Parameters:
compilerOptions
- All command line options supported by the JDK JAVAC tool
-
findClass
Implementation ofClassLoader.findClass(String)
.- Overrides:
findClass
in classClassLoader
- Throws:
ClassNotFoundException
-