Package manifold.internal.javac
Class WriterJavaFileObject
- java.lang.Object
-
- javax.tools.SimpleJavaFileObject
-
- manifold.internal.javac.WriterJavaFileObject
-
- All Implemented Interfaces:
FileObject,JavaFileObject
public class WriterJavaFileObject extends SimpleJavaFileObject
A utility for other compilers hosting Manifold, primarily for exposing class files as JavaFileObjects where APIs require it.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
-
-
Field Summary
-
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
-
-
Constructor Summary
Constructors Constructor Description WriterJavaFileObject(IManifoldHost host, String fqn)WriterJavaFileObject(IManifoldHost host, String pkg, String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamopenInputStream()OutputStreamopenOutputStream()-
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openReader, openWriter, toString, toUri
-
-
-
-
Constructor Detail
-
WriterJavaFileObject
public WriterJavaFileObject(IManifoldHost host, String fqn)
-
WriterJavaFileObject
public WriterJavaFileObject(IManifoldHost host, String pkg, String filename)
-
-
Method Detail
-
openOutputStream
public OutputStream openOutputStream() throws IOException
- Specified by:
openOutputStreamin interfaceFileObject- Overrides:
openOutputStreamin classSimpleJavaFileObject- Throws:
IOException
-
openInputStream
public InputStream openInputStream() throws IOException
- Specified by:
openInputStreamin interfaceFileObject- Overrides:
openInputStreamin classSimpleJavaFileObject- Throws:
IOException
-
-