Skip navigation links
A C D F G H I L M N U V W 

A

addClassPath(String) - Static method in enum net.openhft.compiler.CompilerUtils
Adds a directory to the compilation class-path.

C

CACHED_COMPILER - Static variable in enum net.openhft.compiler.CompilerUtils
In-memory singleton compiler reused across calls.
CachedCompiler - Class in net.openhft.compiler
Manages in-memory compilation with an optional cache.
CachedCompiler(File, File) - Constructor for class net.openhft.compiler.CachedCompiler
Create a compiler that optionally writes sources and classes to the given directories.
CachedCompiler(File, File, List<String>) - Constructor for class net.openhft.compiler.CachedCompiler
Create a compiler with explicit compiler options.
clearBuffers() - Method in class net.openhft.compiler.MyJavaFileManager
Remove all compiled class data from memory.
close() - Method in class net.openhft.compiler.CachedCompiler
Close any file managers created by this compiler.
close() - Method in class net.openhft.compiler.CloseableByteArrayOutputStream
 
close() - Method in class net.openhft.compiler.MyJavaFileManager
 
CloseableByteArrayOutputStream - Class in net.openhft.compiler
ByteArrayOutputStream that completes a CompletableFuture when closed.
CloseableByteArrayOutputStream() - Constructor for class net.openhft.compiler.CloseableByteArrayOutputStream
 
closeFuture() - Method in class net.openhft.compiler.CloseableByteArrayOutputStream
Return the future that completes when CloseableByteArrayOutputStream.close() is called.
CompilerUtils - Enum in net.openhft.compiler
Provides static utility methods for runtime Java compilation, dynamic class loading, and class-path manipulation.

D

DEBUGGING - Static variable in enum net.openhft.compiler.CompilerUtils
Indicates whether the JVM started with debugging enabled.
defineClass(String, byte[]) - Static method in enum net.openhft.compiler.CompilerUtils
Define a class for byte code.
defineClass(ClassLoader, String, byte[]) - Static method in enum net.openhft.compiler.CompilerUtils
Defines a class from the supplied bytecode.

F

fileManagerOverride - Variable in class net.openhft.compiler.CachedCompiler
Optional testing hook to replace the file manager implementation.
flush() - Method in class net.openhft.compiler.MyJavaFileManager
 

G

getAllBuffers() - Method in class net.openhft.compiler.MyJavaFileManager
Collect all compiled class buffers, blocking until previous compilation runs finish.
getClassLoader(JavaFileManager.Location) - Method in class net.openhft.compiler.MyJavaFileManager
 
getFileForInput(JavaFileManager.Location, String, String) - Method in class net.openhft.compiler.MyJavaFileManager
 
getFileForOutput(JavaFileManager.Location, String, String, FileObject) - Method in class net.openhft.compiler.MyJavaFileManager
 
getJavaFileForInput(JavaFileManager.Location, String, JavaFileObject.Kind) - Method in class net.openhft.compiler.MyJavaFileManager
Return a JavaFileObject backed by the in-memory buffer when the caller requests a class that has just been compiled to StandardLocation.CLASS_OUTPUT.
getJavaFileForOutput(JavaFileManager.Location, String, JavaFileObject.Kind, FileObject) - Method in class net.openhft.compiler.MyJavaFileManager
Store compiled class bytes in the internal buffer and return a sink that writes into it.

H

handleOption(String, Iterator<String>) - Method in class net.openhft.compiler.MyJavaFileManager
 
hasLocation(JavaFileManager.Location) - Method in class net.openhft.compiler.MyJavaFileManager
 

I

inferBinaryName(JavaFileManager.Location, JavaFileObject) - Method in class net.openhft.compiler.MyJavaFileManager
 
inferModuleName(JavaFileManager.Location) - Method in class net.openhft.compiler.MyJavaFileManager
Reflectively call inferModuleName if present on the delegate.
isSameFile(FileObject, FileObject) - Method in class net.openhft.compiler.MyJavaFileManager
 
isSupportedOption(String) - Method in class net.openhft.compiler.MyJavaFileManager
 

L

list(JavaFileManager.Location, String, Set<JavaFileObject.Kind>, boolean) - Method in class net.openhft.compiler.MyJavaFileManager
 
listLocationsForModules(JavaFileManager.Location) - Method in class net.openhft.compiler.MyJavaFileManager
Invoke listLocationsForModules reflectively if available.
loadFromJava(String, String) - Method in class net.openhft.compiler.CachedCompiler
Compile the supplied source and load the class using this instance's class loader.
loadFromJava(ClassLoader, String, String) - Method in class net.openhft.compiler.CachedCompiler
Compile the source using the supplied class loader.
loadFromJava(ClassLoader, String, String, PrintWriter) - Method in class net.openhft.compiler.CachedCompiler
Compile and load using a specific class loader and writer.
loadFromResource(String, String) - Static method in enum net.openhft.compiler.CompilerUtils
Loads a class from a source file found on the class-path or local file system.

M

MyJavaFileManager - Class in net.openhft.compiler
Custom JavaFileManager that stores compiled class files in memory and exposes them as byte arrays, while delegating unresolved operations to a wrapped StandardJavaFileManager.
MyJavaFileManager(StandardJavaFileManager) - Constructor for class net.openhft.compiler.MyJavaFileManager
Create a file manager that delegates to the provided instance while keeping compiled class bytes in memory.

N

net.openhft.compiler - package net.openhft.compiler
 

U

updateFileManagerForClassLoader(ClassLoader, Consumer<MyJavaFileManager>) - Method in class net.openhft.compiler.CachedCompiler
Update the file manager for a specific class loader.

V

valueOf(String) - Static method in enum net.openhft.compiler.CompilerUtils
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.openhft.compiler.CompilerUtils
Returns an array containing the constants of this enum type, in the order they are declared.

W

writeBytes(File, byte[]) - Static method in enum net.openhft.compiler.CompilerUtils
Writes the given bytes to the specified file.
writeText(File, String) - Static method in enum net.openhft.compiler.CompilerUtils
Writes the provided text to the target file using UTF-8.
A C D F G H I L M N U V W 
Skip navigation links

Copyright © 2025. All rights reserved.