StandaloneAnalysisAPISessionBuilder¶
class StandaloneAnalysisAPISessionBuilder(projectDisposable: Disposable, unitTestMode: Boolean)
Constructors¶
StandaloneAnalysisAPISessionBuilder¶
constructor(projectDisposable: Disposable, unitTestMode: Boolean)
Properties¶
application¶
val application: Application
project¶
val project: Project
Functions¶
build¶
buildKtModuleProvider¶
fun buildKtModuleProvider(init: KaModuleContainerBuilder.() -> Unit)
enableCacheCleaner¶
fun enableCacheCleaner()
Enables a cache cleaner for the current session. It might attempt to drop internal caches to avoid memory issues.
The cleaner is mostly designed for long-running workloads where analyze affects so many modules that cache size blows out of proportion.
See KT-70489 for more details.
registerApplicationService¶
fun <T : Any> registerApplicationService(serviceImplementation: Class<T>)
registerProjectExtensionPoint¶
registerProjectService¶
fun <T : Any> registerProjectService(serviceImplementation: Class<T>)