public class FileScopeCache extends ConcurrentCacheStoreBase<Collection<IASScope>>
<script> tag maps to a DoABC tag in the library
SWF. The tag contains an ABC script which has a top-level file scope with one
or many public definitions inside. The FileScopeCache is a table of
key-value pairs. The key is a string in the form: swc/library/script.
The value is a SoftReference to a collection of ASFileScopes.| Modifier and Type | Class and Description |
|---|---|
protected static class |
FileScopeCache.FileScopeCacheKey
Key object for
FileScopeCache. |
| Constructor and Description |
|---|
FileScopeCache(SWCManager swcManager) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<IASScope> |
createEntryValue(CacheStoreKeyBase key)
Get the
ASFileScopes associated with the key. |
static FileScopeCache.FileScopeCacheKey |
createKey(ISWC swc,
String librarySWFPath,
ISWCScript script)
Factory method for creating a key object for
SWCCache. |
get, remove, size, toStringpublic FileScopeCache(SWCManager swcManager)
public static FileScopeCache.FileScopeCacheKey createKey(ISWC swc, String librarySWFPath, ISWCScript script)
SWCCache.swc - SWC file (optional)librarySWFPath - path to a library SWF fileprotected Collection<IASScope> createEntryValue(CacheStoreKeyBase key)
ASFileScopes associated with the key.createEntryValue in class ConcurrentCacheStoreBase<Collection<IASScope>>key - a key is a string of pattern: {path/to/file.swc:Copyright © 2016 The Apache Software Foundation. All rights reserved.