public abstract class GlobalJavaBatchInspectionTool extends GlobalInspectionTool
myNameProvider| Constructor and Description |
|---|
GlobalJavaBatchInspectionTool() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadActionNeeded()
True by default to ensure third party plugins are not broken
|
boolean |
queryExternalUsagesRequests(InspectionManager manager,
GlobalInspectionContext globalContext,
ProblemDescriptionsProcessor problemDescriptionsProcessor)
Allows the inspection to process usages of analyzed classes outside the analysis scope.
|
protected boolean |
queryExternalUsagesRequests(RefManager manager,
GlobalJavaInspectionContext globalContext,
ProblemDescriptionsProcessor processor) |
checkElement, checkElement, compose, getAdditionalJobs, getAdditionalJobs, getAnnotator, getHint, getQuickFix, getSharedLocalInspectionTool, getSuppressId, isEnabledByDefault, isGraphNeeded, runInspection, worksInBatchModeOnlycleanup, createOptionsPanel, getAlternativeID, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupDisplayName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions, writeSettingspublic boolean queryExternalUsagesRequests(InspectionManager manager, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor problemDescriptionsProcessor)
GlobalInspectionToolGlobalInspectionTool.runInspection(AnalysisScope, InspectionManager, GlobalInspectionContext, ProblemDescriptionsProcessor)
method has collected the list of problems for the current scope.
In order to save time when multiple inspections need to process
usages of the same classes and methods, usage searches are not performed directly, but
instead are queued for batch processing through
GlobalJavaInspectionContext.enqueueClassUsagesProcessor(com.intellij.codeInspection.reference.RefClass, com.intellij.codeInspection.GlobalJavaInspectionContext.UsagesProcessor) and similar methods. The method
can add new problems to problemDescriptionsProcessor or remove some of the problems
collected by GlobalInspectionTool.runInspection(AnalysisScope, InspectionManager, GlobalInspectionContext, ProblemDescriptionsProcessor)
by calling ProblemDescriptionsProcessor.ignoreElement(RefEntity).queryExternalUsagesRequests in class GlobalInspectionToolmanager - the inspection manager instance for the project on which the inspection was run.globalContext - the context for the current global inspection run.problemDescriptionsProcessor - the collector for problems reported by the inspection.public boolean isReadActionNeeded()
GlobalInspectionToolisReadActionNeeded in class GlobalInspectionToolGlobalInspectionTool.runInspection(AnalysisScope, InspectionManager, GlobalInspectionContext, ProblemDescriptionsProcessor)) in ReadAction,
false if ReadAction is taken by inspection itselfprotected boolean queryExternalUsagesRequests(RefManager manager, GlobalJavaInspectionContext globalContext, ProblemDescriptionsProcessor processor)