| java.lang.Object org.codehaus.janino.Cookable org.codehaus.janino.SimpleCompiler
All known Subclasses: org.codehaus.janino.ClassBodyEvaluator,
BOOT_CLASS_LOADER | final public static ClassLoader BOOT_CLASS_LOADER(Code) | | A
ClassLoader that finds the classes on the JVM's boot class path (e.g.
java.io.* ), but not the classes on the JVM's class path.
|
SimpleCompiler | public SimpleCompiler()(Code) | | |
compileToClassLoader | final protected ClassLoader compileToClassLoader(Java.CompilationUnit compilationUnit, EnumeratorSet debuggingInformation) throws CompileException(Code) | | Compile the given compilation unit. (A "compilation unit" is typically the contents
of a JavaTM source file.)
Parameters: compilationUnit - The parsed compilation unit Parameters: debuggingInformation - What kind of debugging information to generate in the class file The ClassLoader into which the compiled classes were defined throws: CompileException - |
hashCode | public int hashCode()(Code) | | |
setParentClassLoader | public void setParentClassLoader(ClassLoader optionalParentClassLoader)(Code) | | The "parent class loader" is used to load referenced classes. Useful values are:
System.getSystemClassLoader() |
The running JVM's class path |
Thread.currentThread().getContextClassLoader() or null |
The class loader effective for the invoking thread |
SimpleCompiler.BOOT_CLASS_LOADER |
The running JVM's boot class path |
The parent class loader defaults to the current thread's context class loader.
|
setParentClassLoader | public void setParentClassLoader(ClassLoader optionalParentClassLoader, Class[] auxiliaryClasses)(Code) | | Allowe references to the classes loaded through this parent class loader
(@see
SimpleCompiler.setParentClassLoader(ClassLoader) ), plus the extra
auxiliaryClasses .
Notice that the auxiliaryClasses must either be loadable through the
optionalParentClassLoader (in which case they have no effect), or
no class with the same name must be loadable through the
optionalParentClassLoader .
|
Methods inherited from org.codehaus.janino.Cookable | abstract public void cook(Scanner scanner) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc) final public void cook(Reader r) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc) final public void cook(String optionalFileName, Reader r) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc) final public void cook(InputStream is) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc) final public void cook(String optionalFileName, InputStream is) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc) final public void cook(InputStream is, String optionalEncoding) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc) final public void cook(String optionalFileName, InputStream is, String optionalEncoding) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc) final public void cook(String s) throws CompileException, Parser.ParseException, Scanner.ScanException(Code)(Java Doc) final public void cookFile(File file) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc) final public void cookFile(File file, String optionalEncoding) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc) final public void cookFile(String fileName) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc) final public void cookFile(String fileName, String optionalEncoding) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc)
|
|
|