public class RedundantCastInspection extends GenericsInspectionToolBase
| Modifier and Type | Field and Description |
|---|---|
boolean |
IGNORE_SUSPICIOUS_METHOD_CALLS |
EMPTY_ARRAY, VALID_ID_PATTERNmyNameProvider| 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, isEnabledByDefaultbuildVisitor, 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, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptionspublic ProblemDescriptor [] getDescriptions(PsiElement where, InspectionManager manager, boolean isOnTheFly)
getDescriptions in class GenericsInspectionToolBasepublic ProblemDescriptor[] checkField(PsiField field, InspectionManager manager, boolean isOnTheFly)
AbstractBaseJavaLocalInspectionToolcheckField in class GenericsInspectionToolBasefield - 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
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 javax.swing.JComponent createOptionsPanel()
InspectionProfileEntrycreateOptionsPanel in class InspectionProfileEntrynull if no UI options required.public java.lang.String getGroupDisplayName()
getGroupDisplayName in class InspectionProfileEntryInspectionEP.groupDisplayName,
InspectionEP.groupKey,
InspectionEP.groupBundlepublic java.lang.String getShortName()
InspectionProfileEntrygetShortName in class InspectionProfileEntryInspectionEP.shortName