Class JDeparser

java.lang.Object
org.jboss.jdeparser.JDeparser

public final class JDeparser extends Object
The main entry point for this library. Use this class to construct a collection of source files which can be generated and stored.
Author:
David M. Lloyd
  • Method Details

    • 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.