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_PATTERN
myNameProvider
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, checkField
buildVisitor, checkFile, getAlternativeID, getID, getProblemElement, getSuppressId, inspectionFinished, inspectionFinished, inspectionStarted, isValidID, processFile, runForWholeFile
cleanup, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isEnabledByDefault, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions
public 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
InspectionProfileEntry
int TOOL_OPTION
)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)
) to store your options.writeSettings
in class InspectionProfileEntry
node
- to store settings to.WriteExternalException
public ProblemDescriptor[] checkMethod(PsiMethod method, InspectionManager manager, boolean isOnTheFly)
AbstractBaseJavaLocalInspectionTool
checkMethod
in class AbstractBaseJavaLocalInspectionTool
method
- 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)
AbstractBaseJavaLocalInspectionTool
checkClass
in class AbstractBaseJavaLocalInspectionTool
aClass
- 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 InspectionProfileEntry
InspectionEP.groupDisplayName
,
InspectionEP.groupKey
,
InspectionEP.groupBundle
public java.lang.String getShortName()
InspectionProfileEntry
getShortName
in class InspectionProfileEntry
InspectionEP.shortName
public javax.swing.JComponent createOptionsPanel()
InspectionProfileEntry
createOptionsPanel
in class InspectionProfileEntry
null
if no UI options required.