KaAnalysisPermissionChecker¶
interface KaAnalysisPermissionChecker : KaEngineService
KaAnalysisPermissionChecker is an engine service which allows checking whether analysis is currently allowed.
In general, analysis can be prohibited in the following cases:
-
If analysis is invoked from the EDT, it is prohibited unless explicitly allowed via
allowAnalysisOnEdtorKotlinAnalysisPermissionOptions. -
If analysis is invoked from a write action, it is prohibited unless explicitly allowed via
allowAnalysisFromWriteActionorKotlinAnalysisPermissionOptions. -
Analysis can also be explicitly forbidden via
forbidAnalysis, which in contrast to the above points cannot be controlled withKotlinAnalysisPermissionOptions.
Types¶
Companion¶
object Companion
Functions¶
getRejectionReason¶
abstract fun getRejectionReason(): String
isAnalysisAllowed¶
abstract fun isAnalysisAllowed(): Boolean