Package org.teavm.cache
Class DiskProgramCache
- java.lang.Object
-
- org.teavm.cache.DiskProgramCache
-
- All Implemented Interfaces:
ProgramCache
public class DiskProgramCache extends java.lang.Object implements ProgramCache
-
-
Constructor Summary
Constructors Constructor Description DiskProgramCache(java.io.File directory, ReferenceCache referenceCache, SymbolTable symbolTable, SymbolTable fileTable, SymbolTable variableTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()Programget(MethodReference method, CacheStatus cacheStatus)voidstore(MethodReference method, Program program, java.util.function.Supplier<java.lang.String[]> dependencies)
-
-
-
Constructor Detail
-
DiskProgramCache
public DiskProgramCache(java.io.File directory, ReferenceCache referenceCache, SymbolTable symbolTable, SymbolTable fileTable, SymbolTable variableTable)
-
-
Method Detail
-
get
public Program get(MethodReference method, CacheStatus cacheStatus)
- Specified by:
getin interfaceProgramCache
-
store
public void store(MethodReference method, Program program, java.util.function.Supplier<java.lang.String[]> dependencies)
- Specified by:
storein interfaceProgramCache
-
flush
public void flush() throws java.io.IOException- Throws:
java.io.IOException
-
-