Class GeneratorOutput


  • public class GeneratorOutput
    extends java.lang.Object
    Abstraction for output used by BoxGenerator. Can refer to a directory or a annotation processor Filer.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static GeneratorOutput create​(java.io.File outDirFile)  
      static GeneratorOutput create​(java.lang.String outDir)  
      static GeneratorOutput create​(javax.annotation.processing.Filer filer)  
      protected java.io.Writer createWriter​(java.lang.String javaPackage, java.lang.String fileOrJavaClassName, java.lang.String fileExtension)  
      protected java.io.File getFileOrNull​(java.lang.String javaPackage, java.lang.String fileName, java.lang.String fileExtension)  
      • Methods inherited from class java.lang.Object

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

      • create

        public static GeneratorOutput create​(java.lang.String outDir)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • create

        public static GeneratorOutput create​(java.io.File outDirFile)
      • create

        public static GeneratorOutput create​(javax.annotation.processing.Filer filer)
      • createWriter

        protected java.io.Writer createWriter​(java.lang.String javaPackage,
                                              java.lang.String fileOrJavaClassName,
                                              java.lang.String fileExtension)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getFileOrNull

        protected java.io.File getFileOrNull​(java.lang.String javaPackage,
                                             java.lang.String fileName,
                                             java.lang.String fileExtension)