Package com.google.common.truth.codegen
Class CompilingClassLoader.InMemoryFileManager
java.lang.Object
javax.tools.ForwardingJavaFileManager<JavaFileManager>
com.google.common.truth.codegen.CompilingClassLoader.InMemoryFileManager
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,JavaFileManager
,OptionChecker
- Enclosing class:
CompilingClassLoader
private class CompilingClassLoader.InMemoryFileManager
extends ForwardingJavaFileManager<JavaFileManager>
Provides an in-memory representation of JavaFileManager abstraction, so we do not need to write
any files to disk.
When files are written to, rather than putting the bytes on disk, they are appended to buffers
in byteCodeForClasses.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.tools.JavaFileManager
JavaFileManager.Location
-
Field Summary
Fields inherited from class javax.tools.ForwardingJavaFileManager
fileManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetJavaFileForOutput
(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) Methods inherited from class javax.tools.ForwardingJavaFileManager
close, flush, getClassLoader, getFileForInput, getFileForOutput, getJavaFileForInput, handleOption, hasLocation, inferBinaryName, isSameFile, isSupportedOption, list
-
Constructor Details
-
InMemoryFileManager
-
-
Method Details
-
getJavaFileForOutput
public JavaFileObject getJavaFileForOutput(JavaFileManager.Location location, String className, JavaFileObject.Kind kind, FileObject sibling) throws IOException - Specified by:
getJavaFileForOutput
in interfaceJavaFileManager
- Overrides:
getJavaFileForOutput
in classForwardingJavaFileManager<JavaFileManager>
- Throws:
IOException
-