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

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.apt.dispatch.BatchFilerImpl
All Implemented Interfaces:
Filer

public class BatchFilerImpl
extends Object
implements 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  HashSet<URI> _createdFiles
           
protected  BaseAnnotationProcessorManager _dispatchManager
           
protected  BaseProcessingEnvImpl _env
           
protected  JavaFileManager _fileManager
           
 
Constructor Summary
BatchFilerImpl(BaseAnnotationProcessorManager dispatchManager, BatchProcessingEnvImpl env)
           
 
Method Summary
 void addNewClassFile(ReferenceBinding binding)
           
 void addNewUnit(ICompilationUnit unit)
           
 JavaFileObject createClassFile(CharSequence name, Element... originatingElements)
           
 FileObject createResource(JavaFileManager.Location location, CharSequence pkg, CharSequence relativeName, Element... originatingElements)
           
 JavaFileObject createSourceFile(CharSequence name, Element... originatingElements)
           
 FileObject getResource(JavaFileManager.Location location, CharSequence pkg, 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 JavaFileManager _fileManager

_createdFiles

protected final HashSet<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 JavaFileObject createClassFile(CharSequence name,
                                      Element... originatingElements)
                               throws IOException
Specified by:
createClassFile in interface Filer
Throws:
IOException

createResource

public FileObject createResource(JavaFileManager.Location location,
                                 CharSequence pkg,
                                 CharSequence relativeName,
                                 Element... originatingElements)
                          throws IOException
Specified by:
createResource in interface Filer
Throws:
IOException

createSourceFile

public JavaFileObject createSourceFile(CharSequence name,
                                       Element... originatingElements)
                                throws IOException
Specified by:
createSourceFile in interface Filer
Throws:
IOException

getResource

public FileObject getResource(JavaFileManager.Location location,
                              CharSequence pkg,
                              CharSequence relativeName)
                       throws IOException
Specified by:
getResource in interface Filer
Throws:
IOException


Copyright © 2012. All Rights Reserved.