Package org.jboss.jdeparser
Class JDeparser
- java.lang.Object
-
- org.jboss.jdeparser.JDeparser
-
public final class JDeparser extends java.lang.ObjectThe 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 privateJDeparser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JSourcescreateSources(JFiler filer, FormatPreferences format)Create a new source generation collection.static voiddropCaches()Drop all thread-local caches.
-
-
-
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 sourcesformat- 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 afinallyblock to ensure that resources are released regardless of the outcome of intervening operations.
-
-