Package org.teavm.cache
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 TypeMethodDescriptionvoid
commit()
void
discard()
get(MethodReference methodReference, CacheStatus cacheStatus)
getAsync(MethodReference methodReference, CacheStatus cacheStatus)
void
void
store(MethodReference methodReference, AstCacheEntry entry, Supplier<String[]> dependencies)
void
storeAsync(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:
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[]> dependencies)- Specified by:
storeAsync
in interfaceMethodNodeCache
-
commit
public void commit() -
discard
public void discard() -
invalidate
public void invalidate()
-