public class HookedJavaFileObject extends ForwardingJavaFileObject<JavaFileObject>
JavaFileObject.Kind| Modifier and Type | Field and Description |
|---|---|
protected 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.
|
fileObject| Constructor and Description |
|---|
HookedJavaFileObject(JavaFileObject fileObject,
String fileName,
BatchFilerImpl filer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closed() |
OutputStream |
openOutputStream() |
Writer |
openWriter() |
getAccessLevel, getKind, getNestingKind, isNameCompatibledelete, getCharContent, getLastModified, getName, openInputStream, openReader, toUriclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, getCharContent, getLastModified, getName, openInputStream, openReader, toUriprotected final BatchFilerImpl _filer
protected final String _fileName
public HookedJavaFileObject(JavaFileObject fileObject, String fileName, BatchFilerImpl filer)
public OutputStream openOutputStream() throws IOException
openOutputStream in interface FileObjectopenOutputStream in class ForwardingFileObject<JavaFileObject>IOExceptionpublic Writer openWriter() throws IOException
openWriter in interface FileObjectopenWriter in class ForwardingFileObject<JavaFileObject>IOExceptionprotected void closed()
Copyright © 2013. All rights reserved.