public class CanBeFinalInspection extends GlobalJavaBatchInspectionTool
Modifier and Type | Field and Description |
---|---|
boolean |
REPORT_CLASSES |
boolean |
REPORT_FIELDS |
boolean |
REPORT_METHODS |
static java.lang.String |
SHORT_NAME |
myNameProvider
Constructor and Description |
---|
CanBeFinalInspection() |
Modifier and Type | Method and Description |
---|---|
CommonProblemDescriptor [] |
checkElement(RefEntity refEntity,
AnalysisScope scope,
InspectionManager manager,
GlobalInspectionContext globalContext,
ProblemDescriptionsProcessor processor)
Processes and reports problems for a single element of the completed reference graph.
|
javax.swing.JComponent |
createOptionsPanel()
This method is called each time UI is shown.
|
RefGraphAnnotator |
getAnnotator(RefManager refManager)
Returns the annotator which will receive callbacks while the reference graph
is being built.
|
java.lang.String |
getGroupDisplayName() |
QuickFix<ProblemDescriptor> |
getQuickFix(java.lang.String hint)
Allows TeamCity plugin to reconstruct quickfixes from server side data
|
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
boolean |
isReportClasses() |
boolean |
isReportFields() |
boolean |
isReportMethods() |
protected boolean |
queryExternalUsagesRequests(RefManager manager,
GlobalJavaInspectionContext globalContext,
ProblemDescriptionsProcessor problemsProcessor) |
isReadActionNeeded, queryExternalUsagesRequests
checkElement, compose, getAdditionalJobs, getAdditionalJobs, getHint, getSharedLocalInspectionTool, getSuppressId, isEnabledByDefault, isGraphNeeded, runInspection, worksInBatchModeOnly
cleanup, getAlternativeID, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions, writeSettings
public boolean REPORT_CLASSES
public boolean REPORT_METHODS
public boolean REPORT_FIELDS
public static final java.lang.String SHORT_NAME
public boolean isReportClasses()
public boolean isReportMethods()
public boolean isReportFields()
public javax.swing.JComponent createOptionsPanel()
InspectionProfileEntry
createOptionsPanel
in class InspectionProfileEntry
null
if no UI options required.public RefGraphAnnotator getAnnotator(RefManager refManager)
GlobalInspectionTool
UserDataHolder.putUserData(com.intellij.openapi.util.Key, Object)
.getAnnotator
in class GlobalInspectionTool
refManager
- the reference graph manager instanceGlobalInspectionTool.isGraphNeeded()
public CommonProblemDescriptor [] checkElement(RefEntity refEntity, AnalysisScope scope, InspectionManager manager, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor processor)
GlobalInspectionTool
checkElement
in class GlobalInspectionTool
refEntity
- the reference graph element to check for problems.scope
- the scope on which analysis was invoked.manager
- the inspection manager instance for the project on which the inspection was run.globalContext
- the context for the current global inspection run.processor
- the collector for problems reported by the inspectionprotected boolean queryExternalUsagesRequests(RefManager manager, GlobalJavaInspectionContext globalContext, ProblemDescriptionsProcessor problemsProcessor)
queryExternalUsagesRequests
in class GlobalJavaBatchInspectionTool
public QuickFix<ProblemDescriptor> getQuickFix(java.lang.String hint)
GlobalInspectionTool
getQuickFix
in class GlobalInspectionTool
hint
- a hint to distinguish different quick fixes for one problempublic java.lang.String getGroupDisplayName()
getGroupDisplayName
in class InspectionProfileEntry
InspectionEP.groupDisplayName
,
InspectionEP.groupKey
,
InspectionEP.groupBundle
public java.lang.String getShortName()
InspectionProfileEntry
getShortName
in class InspectionProfileEntry
InspectionEP.shortName