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
 
构造方法摘要
HookedJavaFileObject(javax.tools.JavaFileObject fileObject, String fileName, BatchFilerImpl filer)
           
 
方法摘要
protected  void closed()
           
 OutputStream openOutputStream()
           
 Writer openWriter()
           
 
从类 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.