Package com.google.turbine.processing
Class TurbineFiler
- java.lang.Object
-
- com.google.turbine.processing.TurbineFiler
-
- All Implemented Interfaces:
javax.annotation.processing.Filer
public class TurbineFiler extends java.lang.Object implements javax.annotation.processing.FilerTurbine's implementation ofFiler.
-
-
Constructor Summary
Constructors Constructor Description TurbineFiler(java.util.Set<java.lang.String> seen, java.util.function.Function<java.lang.String,com.google.common.base.Supplier<byte[]>> classPath, java.lang.ClassLoader loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.tools.JavaFileObjectcreateClassFile(java.lang.CharSequence n, javax.lang.model.element.Element... originatingElements)javax.tools.FileObjectcreateResource(javax.tools.JavaFileManager.Location location, java.lang.CharSequence p, java.lang.CharSequence r, javax.lang.model.element.Element... originatingElements)javax.tools.JavaFileObjectcreateSourceFile(java.lang.CharSequence n, javax.lang.model.element.Element... originatingElements)java.util.Collection<SourceFile>finishRound()Called when the current annotation processing round is complete, and returns the sources generated in that round.com.google.common.collect.ImmutableMap<java.lang.String,byte[]>generatedClasses()Generated class file objects from all rounds.com.google.common.collect.ImmutableMap<java.lang.String,SourceFile>generatedSources()Generated source file objects from all rounds.javax.tools.FileObjectgetResource(javax.tools.JavaFileManager.Location location, java.lang.CharSequence p, java.lang.CharSequence r)
-
-
-
Method Detail
-
generatedSources
public com.google.common.collect.ImmutableMap<java.lang.String,SourceFile> generatedSources()
Generated source file objects from all rounds.
-
generatedClasses
public com.google.common.collect.ImmutableMap<java.lang.String,byte[]> generatedClasses()
Generated class file objects from all rounds.
-
finishRound
public java.util.Collection<SourceFile> finishRound()
Called when the current annotation processing round is complete, and returns the sources generated in that round.
-
createSourceFile
public javax.tools.JavaFileObject createSourceFile(java.lang.CharSequence n, javax.lang.model.element.Element... originatingElements) throws java.io.IOException- Specified by:
createSourceFilein interfacejavax.annotation.processing.Filer- Throws:
java.io.IOException
-
createClassFile
public javax.tools.JavaFileObject createClassFile(java.lang.CharSequence n, javax.lang.model.element.Element... originatingElements) throws java.io.IOException- Specified by:
createClassFilein interfacejavax.annotation.processing.Filer- Throws:
java.io.IOException
-
createResource
public javax.tools.FileObject createResource(javax.tools.JavaFileManager.Location location, java.lang.CharSequence p, java.lang.CharSequence r, javax.lang.model.element.Element... originatingElements) throws java.io.IOException- Specified by:
createResourcein interfacejavax.annotation.processing.Filer- Throws:
java.io.IOException
-
getResource
public javax.tools.FileObject getResource(javax.tools.JavaFileManager.Location location, java.lang.CharSequence p, java.lang.CharSequence r) throws java.io.IOException- Specified by:
getResourcein interfacejavax.annotation.processing.Filer- Throws:
java.io.IOException
-
-