public static final class AnalysisStore.CachedAnalysisStore extends java.lang.Object implements AnalysisStore
AnalysisStore.CachedAnalysisStore, AnalysisStore.SyncedAnalysisStore| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<AnalysisContents> |
get()
Gets an
AnalysisContents from the underlying store. |
void |
set(AnalysisContents analysisContents)
Sets an
AnalysisContents to the underlying store. |
AnalysisContents |
unsafeGet()
Gets an
AnalysisContents from the underlying store. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcached, getCachedStore, getThreadSafeStore, syncpublic java.util.Optional<AnalysisContents> get()
AnalysisStoreAnalysisContents from the underlying store.
The contents of the analysis file are necessary for subsequent incremental compiles
given that the analysis files contains information about the previous incremental
compile and lets the incremental compiler decide what needs or needs not to be recompiled.
This method should be called before every incremental compile.get in interface AnalysisStoreAnalysisContents, depending on whether if exists or not.public AnalysisContents unsafeGet()
AnalysisStoreAnalysisContents from the underlying store.unsafeGet in interface AnalysisStorepublic void set(AnalysisContents analysisContents)
AnalysisStoreAnalysisContents to the underlying store.
The contents of the analysis file are necessary for subsequent incremental compiles
given that the analysis files contains information about the previous incremental
compile and lets the incremental compiler decide what needs or needs not to be recompiled.
This method is called after every incremental compile.set in interface AnalysisStore