public class RuntimeJavaCompiler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeJavaCompiler.ClassLoaderFileManager
Use the standard file manager along with a little bit of code that is specific to our in-memory
classes that we are creating.
|
static class |
RuntimeJavaCompiler.CompilerClassLoader
Our class loader can store a set of classes but is otherwise unremarkable.
|
static class |
RuntimeJavaCompiler.JavaClassFromEntry
Given a Jar Entry, create an input stream from that entry.
|
static class |
RuntimeJavaCompiler.JavaClassFromFile
Given a file, create an input stream from that file.
|
static class |
RuntimeJavaCompiler.JavaClassOutput
Given a URI and a Kind collect the output of the compiler.
|
static class |
RuntimeJavaCompiler.JavaSourceFromString
This takes the passed in source and provides it to the compiler.
|
Constructor and Description |
---|
RuntimeJavaCompiler() |
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
compile(PrintWriter printWriter,
String className,
String code) |
static ClassLoader |
compile(PrintWriter printWriter,
String className,
String code,
ClassLoader loader) |
public static ClassLoader compile(PrintWriter printWriter, String className, String code) throws IOException
IOException
public static ClassLoader compile(PrintWriter printWriter, String className, String code, ClassLoader loader) throws IOException
IOException
Copyright © 2011. All Rights Reserved.