org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch
Class BatchFilerImpl

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.BatchFilerImpl
All Implemented Interfaces:
javax.annotation.processing.Filer
Direct Known Subclasses:
AjBatchFilerImpl

public class BatchFilerImpl
extends java.lang.Object
implements javax.annotation.processing.Filer

Implementation of Filer used when compilation is driven by command line or by Tool interface. This version does not need to keep track of dependencies.


Field Summary
protected  java.util.HashSet<java.net.URI> _createdFiles
           
protected  BaseAnnotationProcessorManager _dispatchManager
           
protected  BaseProcessingEnvImpl _env
           
protected  javax.tools.JavaFileManager _fileManager
           
 
Constructor Summary
BatchFilerImpl(BaseAnnotationProcessorManager dispatchManager, BatchProcessingEnvImpl env)
           
 
Method Summary
 void addNewClassFile(ReferenceBinding binding)
           
 void addNewUnit(ICompilationUnit unit)
           
 javax.tools.JavaFileObject createClassFile(java.lang.CharSequence name, javax.lang.model.element.Element... originatingElements)
           
 javax.tools.FileObject createResource(javax.tools.JavaFileManager.Location location, java.lang.CharSequence pkg, java.lang.CharSequence relativeName, javax.lang.model.element.Element... originatingElements)
           
 javax.tools.JavaFileObject createSourceFile(java.lang.CharSequence name, javax.lang.model.element.Element... originatingElements)
           
 javax.tools.FileObject getResource(javax.tools.JavaFileManager.Location location, java.lang.CharSequence pkg, java.lang.CharSequence relativeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_dispatchManager

protected final BaseAnnotationProcessorManager _dispatchManager

_env

protected final BaseProcessingEnvImpl _env

_fileManager

protected final javax.tools.JavaFileManager _fileManager

_createdFiles

protected final java.util.HashSet<java.net.URI> _createdFiles
Constructor Detail

BatchFilerImpl

public BatchFilerImpl(BaseAnnotationProcessorManager dispatchManager,
                      BatchProcessingEnvImpl env)
Method Detail

addNewUnit

public void addNewUnit(ICompilationUnit unit)

addNewClassFile

public void addNewClassFile(ReferenceBinding binding)

createClassFile

public javax.tools.JavaFileObject createClassFile(java.lang.CharSequence name,
                                                  javax.lang.model.element.Element... originatingElements)
                                           throws java.io.IOException
Specified by:
createClassFile in interface javax.annotation.processing.Filer
Throws:
java.io.IOException

createResource

public javax.tools.FileObject createResource(javax.tools.JavaFileManager.Location location,
                                             java.lang.CharSequence pkg,
                                             java.lang.CharSequence relativeName,
                                             javax.lang.model.element.Element... originatingElements)
                                      throws java.io.IOException
Specified by:
createResource in interface javax.annotation.processing.Filer
Throws:
java.io.IOException

createSourceFile

public javax.tools.JavaFileObject createSourceFile(java.lang.CharSequence name,
                                                   javax.lang.model.element.Element... originatingElements)
                                            throws java.io.IOException
Specified by:
createSourceFile in interface javax.annotation.processing.Filer
Throws:
java.io.IOException

getResource

public javax.tools.FileObject getResource(javax.tools.JavaFileManager.Location location,
                                          java.lang.CharSequence pkg,
                                          java.lang.CharSequence relativeName)
                                   throws java.io.IOException
Specified by:
getResource in interface javax.annotation.processing.Filer
Throws:
java.io.IOException