public class RedundantCastInspection extends GenericsInspectionToolBase
Modifier and Type | Field and Description |
---|---|
boolean |
IGNORE_SUSPICIOUS_METHOD_CALLS |
EMPTY_ARRAY, VALID_ID_PATTERN
myNameProvider
Constructor and Description |
---|
RedundantCastInspection() |
Modifier and Type | Method and Description |
---|---|
ProblemDescriptor[] |
checkField(PsiField field,
InspectionManager manager,
boolean isOnTheFly)
Override this to report problems at field level.
|
javax.swing.JComponent |
createOptionsPanel()
This method is called each time UI is shown.
|
ProblemDescriptor [] |
getDescriptions(PsiElement where,
InspectionManager manager,
boolean isOnTheFly) |
java.lang.String |
getGroupDisplayName() |
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
void |
writeSettings(Element node)
Store current settings in XML config.
|
buildVisitor, checkClass, checkMethod, isEnabledByDefault
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, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions
public ProblemDescriptor [] getDescriptions(PsiElement where, InspectionManager manager, boolean isOnTheFly)
getDescriptions
in class GenericsInspectionToolBase
public ProblemDescriptor[] checkField(PsiField field, InspectionManager manager, boolean isOnTheFly)
AbstractBaseJavaLocalInspectionTool
checkField
in class GenericsInspectionToolBase
field
- 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 field level.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 javax.swing.JComponent createOptionsPanel()
InspectionProfileEntry
createOptionsPanel
in class InspectionProfileEntry
null
if no UI options required.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