public class RuntimeJavaCompiler
extends java.lang.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 java.lang.ClassLoader |
compile(java.io.PrintWriter printWriter,
java.lang.String className,
java.lang.String code) |
static java.lang.ClassLoader |
compile(java.io.PrintWriter printWriter,
java.lang.String className,
java.lang.String code,
java.lang.ClassLoader loader) |
public static java.lang.ClassLoader compile(java.io.PrintWriter printWriter, java.lang.String className, java.lang.String code) throws java.io.IOException
java.io.IOException
public static java.lang.ClassLoader compile(java.io.PrintWriter printWriter, java.lang.String className, java.lang.String code, java.lang.ClassLoader loader) throws java.io.IOException
java.io.IOException
Copyright © 2011. All Rights Reserved.