public interface AnalysisStore
AnalysisStore
live in interfaces extending this one.Modifier and Type | Interface and Description |
---|---|
static class |
AnalysisStore.CachedAnalysisStore |
static class |
AnalysisStore.SyncedAnalysisStore |
Modifier and Type | Method and Description |
---|---|
static AnalysisStore |
cached(AnalysisStore analysisStore)
Returns an analysis store whose last contents are kept in-memory.
|
java.util.Optional<AnalysisContents> |
get()
Gets an
AnalysisContents from the underlying store. |
static AnalysisStore |
getCachedStore(AnalysisStore analysisStore)
Returns an analysis store whose last contents are kept in-memory.
|
static AnalysisStore |
getThreadSafeStore(AnalysisStore analysisStore)
Returns a synchronized analysis store that is thread-safe.
|
void |
set(AnalysisContents analysisContents)
Sets an
AnalysisContents to the underlying store. |
static AnalysisStore |
sync(AnalysisStore analysisStore)
Returns a synchronized analysis store that is thread-safe.
|
AnalysisContents |
unsafeGet()
Gets an
AnalysisContents from the underlying store. |
static AnalysisStore getCachedStore(AnalysisStore analysisStore)
set(AnalysisContents)
or
get()
is used.analysisStore
- The underlying analysis store that knows how to read/write contents.static AnalysisStore cached(AnalysisStore analysisStore)
set(AnalysisContents)
or
get()
is used.analysisStore
- The underlying analysis store that knows how to read/write contents.static AnalysisStore getThreadSafeStore(AnalysisStore analysisStore)
analysisStore
- The underlying analysis store that knows how to read/write contents.static AnalysisStore sync(AnalysisStore analysisStore)
analysisStore
- The underlying analysis store that knows how to read/write contents.java.util.Optional<AnalysisContents> get()
AnalysisContents
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.AnalysisContents
, depending on whether if exists or not.AnalysisContents unsafeGet()
AnalysisContents
from the underlying store.void set(AnalysisContents analysisContents)
AnalysisContents
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.