Class InMemoryMethodNodeCache
java.lang.Object
org.teavm.cache.InMemoryMethodNodeCache
- All Implemented Interfaces:
MethodNodeCache
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryMethodNodeCache(ReferenceCache referenceCache, InMemorySymbolTable symbolTable, InMemorySymbolTable fileSymbolTable, InMemorySymbolTable variableSymbolTable) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()voiddiscard()get(MethodReference methodReference, CacheStatus cacheStatus) getAsync(MethodReference methodReference, CacheStatus cacheStatus) voidvoidstore(MethodReference methodReference, AstCacheEntry entry, Supplier<String[]> dependencies) voidstoreAsync(MethodReference methodReference, AsyncMethodNode node, Supplier<String[]> dependencies)
-
Constructor Details
-
InMemoryMethodNodeCache
public InMemoryMethodNodeCache(ReferenceCache referenceCache, InMemorySymbolTable symbolTable, InMemorySymbolTable fileSymbolTable, InMemorySymbolTable variableSymbolTable)
-
-
Method Details
-
get
- Specified by:
getin interfaceMethodNodeCache
-
store
public void store(MethodReference methodReference, AstCacheEntry entry, Supplier<String[]> dependencies) - Specified by:
storein interfaceMethodNodeCache
-
getAsync
- Specified by:
getAsyncin interfaceMethodNodeCache
-
storeAsync
public void storeAsync(MethodReference methodReference, AsyncMethodNode node, Supplier<String[]> dependencies) - Specified by:
storeAsyncin interfaceMethodNodeCache
-
commit
public void commit() -
discard
public void discard() -
invalidate
public void invalidate()
-