Package org.teavm.cache
Class DiskMethodNodeCache
java.lang.Object
org.teavm.cache.DiskMethodNodeCache
- All Implemented Interfaces:
MethodNodeCache
-
Constructor Summary
ConstructorsConstructorDescriptionDiskMethodNodeCache(File directory, ReferenceCache referenceCache, SymbolTable symbolTable, SymbolTable fileTable, SymbolTable variableTable)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
get(MethodReference methodReference, CacheStatus cacheStatus)
getAsync(MethodReference methodReference, CacheStatus cacheStatus)
void
store(MethodReference methodReference, AstCacheEntry entry, Supplier<String[]> dependencies)
void
storeAsync(MethodReference methodReference, AsyncMethodNode node, Supplier<String[]> depenencies)
-
Constructor Details
-
DiskMethodNodeCache
public DiskMethodNodeCache(File directory, ReferenceCache referenceCache, SymbolTable symbolTable, SymbolTable fileTable, SymbolTable variableTable)
-
-
Method Details
-
get
- Specified by:
get
in interfaceMethodNodeCache
-
store
public void store(MethodReference methodReference, AstCacheEntry entry, Supplier<String[]> dependencies)- Specified by:
store
in interfaceMethodNodeCache
-
getAsync
- Specified by:
getAsync
in interfaceMethodNodeCache
-
storeAsync
public void storeAsync(MethodReference methodReference, AsyncMethodNode node, Supplier<String[]> depenencies)- Specified by:
storeAsync
in interfaceMethodNodeCache
-
flush
- Throws:
IOException
-