public class HookedJavaFileObject
extends javax.tools.ForwardingJavaFileObject<javax.tools.JavaFileObject>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
_fileName
The name of the file that is created; this is passed to the CompilationUnit constructor,
and ultimately to the java.io.File constructor, so it is a normal pathname, just like
what would be on the compiler command line.
|
protected BatchFilerImpl |
_filer
The Filer implementation that we need to notify when a new file is created.
|
| Constructor and Description |
|---|
HookedJavaFileObject(javax.tools.JavaFileObject fileObject,
java.lang.String fileName,
java.lang.String typeName,
BatchFilerImpl filer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closed() |
java.io.OutputStream |
openOutputStream() |
java.io.Writer |
openWriter() |
getAccessLevel, getKind, getNestingKind, isNameCompatibledelete, getCharContent, getLastModified, getName, openInputStream, openReader, toUriprotected final BatchFilerImpl _filer
protected final java.lang.String _fileName
public HookedJavaFileObject(javax.tools.JavaFileObject fileObject,
java.lang.String fileName,
java.lang.String typeName,
BatchFilerImpl filer)
public java.io.OutputStream openOutputStream()
throws java.io.IOException
openOutputStream in interface javax.tools.FileObjectopenOutputStream in class javax.tools.ForwardingFileObject<javax.tools.JavaFileObject>java.io.IOExceptionpublic java.io.Writer openWriter()
throws java.io.IOException
openWriter in interface javax.tools.FileObjectopenWriter in class javax.tools.ForwardingFileObject<javax.tools.JavaFileObject>java.io.IOExceptionprotected void closed()