Package org.jboss.jdeparser
Class JDeparser
- java.lang.Object
-
- org.jboss.jdeparser.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.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JSources
createSources(JFiler filer, FormatPreferences format)
Create a new source generation collection.static void
dropCaches()
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 afinally
block to ensure that resources are released regardless of the outcome of intervening operations.
-
-