Package org.jboss.jdeparser
Class JDeparser
java.lang.Object
org.jboss.jdeparser.JDeparser
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
Modifier and TypeMethodDescriptionstatic JSources
createSources
(JFiler filer, FormatPreferences format) Create a new source generation collection.static void
Drop all thread-local caches.
-
Method Details
-
createSources
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.
-