Class FilerProcessor


  • public class FilerProcessor
    extends java.lang.Object
    The Filer Processor
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    ProcessingEnvironment, Filer
    • Constructor Summary

      Constructors 
      Constructor Description
      FilerProcessor​(javax.annotation.processing.ProcessingEnvironment processingEnv)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.tools.JavaFileManager getJavaFileManager()
      Get the JavaFileManager
      <T> T processInFiler​(ThrowableFunction<javax.annotation.processing.Filer,​T> filerCallback)  
      <T> T processInFiler​(ThrowableFunction<javax.annotation.processing.Filer,​T> filerCallback, java.util.function.BiFunction<javax.annotation.processing.Filer,​java.lang.Throwable,​T> exceptionHandler)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilerProcessor

        public FilerProcessor​(javax.annotation.processing.ProcessingEnvironment processingEnv)
    • Method Detail

      • processInFiler

        public <T> T processInFiler​(ThrowableFunction<javax.annotation.processing.Filer,​T> filerCallback)
      • processInFiler

        public <T> T processInFiler​(ThrowableFunction<javax.annotation.processing.Filer,​T> filerCallback,
                                    java.util.function.BiFunction<javax.annotation.processing.Filer,​java.lang.Throwable,​T> exceptionHandler)
      • getJavaFileManager

        public javax.tools.JavaFileManager getJavaFileManager()
        Get the JavaFileManager
        Returns:
        the JavaFileManager