Class CachedCompiler
java.lang.Object
net.openhft.compiler.CachedCompiler
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionCachedCompiler(@Nullable File sourceDir, @Nullable File classDir) CachedCompiler(@Nullable File sourceDir, @Nullable File classDir, @NotNull List<String> options) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()loadFromJava(@NotNull ClassLoader classLoader, @NotNull String className, @NotNull String javaCode) loadFromJava(@NotNull ClassLoader classLoader, @NotNull String className, @NotNull String javaCode, @Nullable PrintWriter writer) loadFromJava(@NotNull String className, @NotNull String javaCode)
-
Constructor Details
-
CachedCompiler
-
CachedCompiler
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
loadFromJava
public Class loadFromJava(@NotNull @NotNull String className, @NotNull @NotNull String javaCode) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
loadFromJava
public Class loadFromJava(@NotNull @NotNull ClassLoader classLoader, @NotNull @NotNull String className, @NotNull @NotNull String javaCode) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
loadFromJava
public Class loadFromJava(@NotNull @NotNull ClassLoader classLoader, @NotNull @NotNull String className, @NotNull @NotNull String javaCode, @Nullable @Nullable PrintWriter writer) throws ClassNotFoundException - Throws:
ClassNotFoundException
-