public class InMemoryJavaCompiler extends Object
| Constructor and Description |
|---|
InMemoryJavaCompiler() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
compile(String className,
CharSequence sourceCode)
Compiles the class with the given name and source code.
|
public static byte[] compile(String className, CharSequence sourceCode)
className - The name of the classsourceCode - The source code for the class with name classNameIllegalArgumentException - if the compilation did not succeedCopyright © 2024. All rights reserved.