Package org.sonar.plugins.python.caching
Class Caching
- java.lang.Object
-
- org.sonar.plugins.python.caching.Caching
-
public class Caching extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringIMPORTS_MAP_CACHE_KEY_PREFIXstatic StringPROJECT_FILES_KEYstatic StringPROJECT_SYMBOL_TABLE_CACHE_KEY_PREFIX
-
Constructor Summary
Constructors Constructor Description Caching(CacheContext cacheContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheContextcacheContext()voidcopyFromPrevious(String moduleFqn)booleanisCacheEnabled()Set<String>readFilesList()Set<String>readImportMapEntry(String moduleFqn)Set<Descriptor>readProjectLevelSymbolTableEntry(String module)voidwriteFilesList(List<String> mainFiles)voidwriteImportsMapEntry(String moduleFqn, Set<String> imports)voidwriteProjectLevelSymbolTableEntry(String moduleFqn, Set<Descriptor> descriptors)
-
-
-
Field Detail
-
IMPORTS_MAP_CACHE_KEY_PREFIX
public static final String IMPORTS_MAP_CACHE_KEY_PREFIX
- See Also:
- Constant Field Values
-
PROJECT_SYMBOL_TABLE_CACHE_KEY_PREFIX
public static final String PROJECT_SYMBOL_TABLE_CACHE_KEY_PREFIX
- See Also:
- Constant Field Values
-
PROJECT_FILES_KEY
public static final String PROJECT_FILES_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Caching
public Caching(CacheContext cacheContext)
-
-
Method Detail
-
writeProjectLevelSymbolTableEntry
public void writeProjectLevelSymbolTableEntry(String moduleFqn, Set<Descriptor> descriptors)
-
copyFromPrevious
public void copyFromPrevious(String moduleFqn)
-
readProjectLevelSymbolTableEntry
@CheckForNull public Set<Descriptor> readProjectLevelSymbolTableEntry(String module)
-
isCacheEnabled
public boolean isCacheEnabled()
-
cacheContext
public CacheContext cacheContext()
-
-