public class LocalCanBeFinal extends AbstractBaseJavaLocalInspectionTool implements CleanupLocalInspectionTool
| Modifier and Type | Field and Description |
|---|---|
boolean |
REPORT_CATCH_PARAMETERS |
boolean |
REPORT_FOREACH_PARAMETERS |
boolean |
REPORT_IMPLICIT_FINALS |
boolean |
REPORT_PARAMETERS |
boolean |
REPORT_VARIABLES |
static java.lang.String |
SHORT_NAME |
EMPTY_ARRAY, VALID_ID_PATTERNmyNameProvider| Constructor and Description |
|---|
LocalCanBeFinal() |
| Modifier and Type | Method and Description |
|---|---|
ProblemDescriptor[] |
checkClass(PsiClass aClass,
InspectionManager manager,
boolean isOnTheFly)
Override this to report problems at class level.
|
ProblemDescriptor[] |
checkMethod(PsiMethod method,
InspectionManager manager,
boolean isOnTheFly)
Override this to report problems at method level.
|
javax.swing.JComponent |
createOptionsPanel()
This method is called each time UI is shown.
|
java.lang.String |
getGroupDisplayName() |
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
void |
writeSettings(Element node)
Store current settings in XML config.
|
buildVisitor, checkFieldbuildVisitor, checkFile, getAlternativeID, getID, getProblemElement, getSuppressId, inspectionFinished, inspectionFinished, inspectionStarted, isValidID, processFile, runForWholeFilecleanup, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isEnabledByDefault, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptionspublic boolean REPORT_VARIABLES
public boolean REPORT_PARAMETERS
public boolean REPORT_CATCH_PARAMETERS
public boolean REPORT_FOREACH_PARAMETERS
public boolean REPORT_IMPLICIT_FINALS
public static final java.lang.String SHORT_NAME
public void writeSettings(Element node)
throws WriteExternalException
InspectionProfileEntryint TOOL_OPTION)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)) to store your options.writeSettings in class InspectionProfileEntrynode - to store settings to.WriteExternalExceptionpublic ProblemDescriptor[] checkMethod(PsiMethod method, InspectionManager manager, boolean isOnTheFly)
AbstractBaseJavaLocalInspectionToolcheckMethod in class AbstractBaseJavaLocalInspectionToolmethod - to check.manager - InspectionManager to ask for ProblemDescriptors from.isOnTheFly - true if called during on the fly editor highlighting. Called from Inspect Code action otherwise.null if no problems found or not applicable at method level.public ProblemDescriptor[] checkClass(PsiClass aClass, InspectionManager manager, boolean isOnTheFly)
AbstractBaseJavaLocalInspectionToolcheckClass in class AbstractBaseJavaLocalInspectionToolaClass - to check.manager - InspectionManager to ask for ProblemDescriptors from.isOnTheFly - true if called during on the fly editor highlighting. Called from Inspect Code action otherwise.null if no problems found or not applicable at class level.public java.lang.String getGroupDisplayName()
getGroupDisplayName in class InspectionProfileEntryInspectionEP.groupDisplayName,
InspectionEP.groupKey,
InspectionEP.groupBundlepublic java.lang.String getShortName()
InspectionProfileEntrygetShortName in class InspectionProfileEntryInspectionEP.shortNamepublic javax.swing.JComponent createOptionsPanel()
InspectionProfileEntrycreateOptionsPanel in class InspectionProfileEntrynull if no UI options required.