Class JDeparser


  • public final class JDeparser
    extends java.lang.Object
    The main entry point for this library. Use this class to construct a collection of source files which can be generated and stored.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private JDeparser()  
    • Constructor Detail

      • JDeparser

        private JDeparser()
    • Method Detail

      • createSources

        public static JSources createSources​(JFiler filer,
                                             FormatPreferences format)
        Create a new source generation collection.
        Parameters:
        filer - the filer to use to store generated sources
        format - the formatting preferences to use for these sources
        Returns:
        the source collection
      • dropCaches

        public static void dropCaches()
        Drop all thread-local caches. This can be done to save memory or avoid GC problems after source generation has been completed. Call within a finally block to ensure that resources are released regardless of the outcome of intervening operations.