Package org.teavm.cache
Class InMemoryMethodNodeCache
- java.lang.Object
-
- org.teavm.cache.InMemoryMethodNodeCache
-
- All Implemented Interfaces:
MethodNodeCache
public class InMemoryMethodNodeCache extends java.lang.Object implements MethodNodeCache
-
-
Constructor Summary
Constructors Constructor Description InMemoryMethodNodeCache(ReferenceCache referenceCache, InMemorySymbolTable symbolTable, InMemorySymbolTable fileSymbolTable, InMemorySymbolTable variableSymbolTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()voiddiscard()AstCacheEntryget(MethodReference methodReference, CacheStatus cacheStatus)AsyncMethodNodegetAsync(MethodReference methodReference, CacheStatus cacheStatus)voidinvalidate()voidstore(MethodReference methodReference, AstCacheEntry entry, java.util.function.Supplier<java.lang.String[]> dependencies)voidstoreAsync(MethodReference methodReference, AsyncMethodNode node, java.util.function.Supplier<java.lang.String[]> dependencies)
-
-
-
Constructor Detail
-
InMemoryMethodNodeCache
public InMemoryMethodNodeCache(ReferenceCache referenceCache, InMemorySymbolTable symbolTable, InMemorySymbolTable fileSymbolTable, InMemorySymbolTable variableSymbolTable)
-
-
Method Detail
-
get
public AstCacheEntry get(MethodReference methodReference, CacheStatus cacheStatus)
- Specified by:
getin interfaceMethodNodeCache
-
store
public void store(MethodReference methodReference, AstCacheEntry entry, java.util.function.Supplier<java.lang.String[]> dependencies)
- Specified by:
storein interfaceMethodNodeCache
-
getAsync
public AsyncMethodNode getAsync(MethodReference methodReference, CacheStatus cacheStatus)
- Specified by:
getAsyncin interfaceMethodNodeCache
-
storeAsync
public void storeAsync(MethodReference methodReference, AsyncMethodNode node, java.util.function.Supplier<java.lang.String[]> dependencies)
- Specified by:
storeAsyncin interfaceMethodNodeCache
-
commit
public void commit()
-
discard
public void discard()
-
invalidate
public void invalidate()
-
-