| java.lang.Object org.codehaus.janino.Cookable org.codehaus.janino.SimpleCompiler
All known Subclasses: org.codehaus.janino.ClassBodyEvaluator,
noloadSimpleCompiler | boolean noloadSimpleCompiler(Code) | | This SimpleCompiler implementation is used when compiling Java
source code stored in a String value. The SimpleCompiler object
is created once and the CLASSPATH is setup. Then the compile()
method is invoked 1 or more times to compile Java class source
contained in a String object. Unlike the other implementations,
this version of the SimpleCompiler will not attempt to load the
compiled class data into the current thread using the class loader.
This implementation will just compile the source code into
an array of ClassFile objects.
|
SimpleCompiler | public SimpleCompiler()(Code) | | |
SimpleCompiler | public SimpleCompiler(boolean noload)(Code) | | |
compileToClassLoader | 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. It defaults to the current
thread's "context class loader".
|
Methods inherited from org.codehaus.janino.Cookable | final 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) abstract protected void internalCook(Scanner scanner) throws CompileException, Parser.ParseException, Scanner.ScanException, IOException(Code)(Java Doc)
|
|
|