public class RuntimeJavaCompiler extends Object
| Constructor and Description |
|---|
RuntimeJavaCompiler() |
| Modifier and Type | Method and Description |
|---|---|
CompilationResult |
compile(String className,
String classSourceCode,
String... dependencies)
Compile the named class consisting of the supplied source code.
|
public CompilationResult compile(String className, String classSourceCode, String... dependencies)
className - the name of the class (dotted form, e.g. com.foo.bar.Goo)classSourceCode - the full source code for the classdependencies - optional coordinates for dependencies, maven
'maven://groupId:artifactId:version', or 'file:' URIs for local filesCopyright © 2020 Pivotal Software, Inc.. All rights reserved.