Class FilerUtils


  • public class FilerUtils
    extends java.lang.Object
    Static utility methods for working with Filer.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FilerUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void writeCompilationUnit​(javax.annotation.processing.Filer filer, SourceBuilder unit, javax.lang.model.element.Element originatingElement)
      Writes unit to the correct file.
      • Methods inherited from class java.lang.Object

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

      • FilerUtils

        private FilerUtils()
    • Method Detail

      • writeCompilationUnit

        public static void writeCompilationUnit​(javax.annotation.processing.Filer filer,
                                                SourceBuilder unit,
                                                javax.lang.model.element.Element originatingElement)
                                         throws java.io.IOException
        Writes unit to the correct file.

        This is complicated by an EJC bug that returns the wrong object from Writer.append(CharSequence).

        Throws:
        java.io.IOException