Package org.teavm.cache
Class InMemoryProgramCache
java.lang.Object
org.teavm.cache.InMemoryProgramCache
- All Implemented Interfaces:
ProgramCache
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryProgramCache(ReferenceCache referenceCache, InMemorySymbolTable symbolTable, InMemorySymbolTable fileSymbolTable, InMemorySymbolTable variableSymbolTable) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()voiddiscard()get(MethodReference method, CacheStatus cacheStatus) intvoidvoidstore(MethodReference method, Program program, Supplier<String[]> dependencies)
-
Constructor Details
-
InMemoryProgramCache
public InMemoryProgramCache(ReferenceCache referenceCache, InMemorySymbolTable symbolTable, InMemorySymbolTable fileSymbolTable, InMemorySymbolTable variableSymbolTable)
-
-
Method Details
-
get
- Specified by:
getin interfaceProgramCache
-
store
- Specified by:
storein interfaceProgramCache
-
commit
public void commit() -
getPendingItemsCount
public int getPendingItemsCount() -
discard
public void discard() -
invalidate
public void invalidate()
-