public class UnitCacheSingleton extends Object
CompilationUnit
instances.Modifier and Type | Field and Description |
---|---|
static String |
GWT_PERSISTENTUNITCACHE |
Constructor and Description |
---|
UnitCacheSingleton() |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
If a cache exists, asks it to clear its contents.
|
static UnitCache |
get(TreeLogger logger,
File specifiedCacheDir,
File fallbackCacheDir,
JJSOptions options)
If the cache is enabled, instantiates the cache and begins loading units
into memory in a background thread.
|
static UnitCache |
get(TreeLogger logger,
File specifiedCacheDir,
JJSOptions options)
If the cache is enabled, instantiates the cache and begins loading units
into memory in a background thread.
|
static String |
getRelevantOptionsHash(JJSOptions options) |
public static final String GWT_PERSISTENTUNITCACHE
public static void clearCache() throws UnableToCompleteException
UnableToCompleteException
public static String getRelevantOptionsHash(JJSOptions options)
public static UnitCache get(TreeLogger logger, File specifiedCacheDir, JJSOptions options)
Only one instance of the cache is instantiated. If a previously created cache exists, the previous instance is returned.
The specified cache dir parameter is optional.
public static UnitCache get(TreeLogger logger, File specifiedCacheDir, File fallbackCacheDir, JJSOptions options)
Only one instance of the cache is instantiated. If a previously created cache exists, the previous instance is returned.
Both specified and fallback cache dir parameters are optional.
Copyright © 2018. All rights reserved.