org.eclipse.jdt.internal.compiler.apt.dispatch
类 HookedJavaFileObject
java.lang.Object
javax.tools.ForwardingFileObject<F>
javax.tools.ForwardingJavaFileObject<javax.tools.JavaFileObject>
org.eclipse.jdt.internal.compiler.apt.dispatch.HookedJavaFileObject
- 所有已实现的接口:
- javax.tools.FileObject, javax.tools.JavaFileObject
public class HookedJavaFileObject
- extends javax.tools.ForwardingJavaFileObject<javax.tools.JavaFileObject>
A delegating JavaFileObject that hooks the close() methods of the Writer
or OutputStream objects that it produces, and notifies the annotation
dispatch manager when a new compilation unit is produced.
| 从接口 javax.tools.JavaFileObject 继承的嵌套类/接口 |
javax.tools.JavaFileObject.Kind |
|
字段摘要 |
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. |
| 从类 javax.tools.ForwardingFileObject 继承的字段 |
fileObject |
| 从类 javax.tools.ForwardingJavaFileObject 继承的方法 |
getAccessLevel, getKind, getNestingKind, isNameCompatible |
| 从类 javax.tools.ForwardingFileObject 继承的方法 |
delete, getCharContent, getLastModified, getName, openInputStream, openReader, toUri |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 从接口 javax.tools.FileObject 继承的方法 |
delete, getCharContent, getLastModified, getName, openInputStream, openReader, toUri |
_filer
protected final BatchFilerImpl _filer
- The Filer implementation that we need to notify when a new file is created.
_fileName
protected final 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.
HookedJavaFileObject
public HookedJavaFileObject(javax.tools.JavaFileObject fileObject,
String fileName,
BatchFilerImpl filer)
openOutputStream
public OutputStream openOutputStream()
throws IOException
- 指定者:
- 接口
javax.tools.FileObject 中的 openOutputStream - 覆盖:
- 类
javax.tools.ForwardingFileObject<javax.tools.JavaFileObject> 中的 openOutputStream
- 抛出:
IOException
openWriter
public Writer openWriter()
throws IOException
- 指定者:
- 接口
javax.tools.FileObject 中的 openWriter - 覆盖:
- 类
javax.tools.ForwardingFileObject<javax.tools.JavaFileObject> 中的 openWriter
- 抛出:
IOException
closed
protected void closed()
Copyright © 2013. All Rights Reserved.