public class NullableStuffInspectionBase extends AbstractBaseJavaLocalInspectionTool
| Modifier and Type | Field and Description |
|---|---|
boolean |
IGNORE_EXTERNAL_SUPER_NOTNULL |
boolean |
REPORT_ANNOTATION_NOT_PROPAGATED_TO_OVERRIDERS
Deprecated.
|
boolean |
REPORT_NOT_ANNOTATED_GETTER |
boolean |
REPORT_NOT_ANNOTATED_METHOD_OVERRIDES_NOTNULL |
boolean |
REPORT_NOT_ANNOTATED_PARAMETER_OVERRIDES_NOTNULL
Deprecated.
|
boolean |
REPORT_NOT_ANNOTATED_SETTER_PARAMETER
Deprecated.
|
boolean |
REPORT_NOTNULL_PARAMETER_OVERRIDES_NULLABLE |
boolean |
REPORT_NOTNULL_PARAMETERS_OVERRIDES_NOT_ANNOTATED |
boolean |
REPORT_NULLABLE_METHOD_OVERRIDES_NOTNULL
Deprecated.
|
boolean |
REPORT_NULLS_PASSED_TO_NON_ANNOTATED_METHOD |
boolean |
REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER |
EMPTY_ARRAY, VALID_ID_PATTERNmyNameProvider| Constructor and Description |
|---|
NullableStuffInspectionBase() |
| Modifier and Type | Method and Description |
|---|---|
PsiElementVisitor |
buildVisitor(ProblemsHolder holder,
boolean isOnTheFly)
Override the method to provide your own inspection visitor.
|
protected LocalQuickFix |
createNavigateToNullParameterUsagesFix(PsiParameter parameter) |
javax.swing.JComponent |
createOptionsPanel()
This method is called each time UI is shown.
|
java.lang.String |
getGroupDisplayName() |
static java.lang.String |
getPresentableAnnoName(PsiAnnotation annotation) |
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
static boolean |
isNullableNotInferred(PsiModifierListOwner owner,
boolean checkBases) |
static boolean |
shouldSkipOverriderAsGenerated(PsiMethod overriding) |
void |
writeSettings(Element node)
Store current settings in XML config.
|
checkClass, checkField, checkMethodbuildVisitor, 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, showDefaultConfigurationOptions@Deprecated public boolean REPORT_NULLABLE_METHOD_OVERRIDES_NOTNULL
public boolean REPORT_NOT_ANNOTATED_METHOD_OVERRIDES_NOTNULL
public boolean REPORT_NOTNULL_PARAMETER_OVERRIDES_NULLABLE
@Deprecated public boolean REPORT_NOT_ANNOTATED_PARAMETER_OVERRIDES_NOTNULL
public boolean REPORT_NOT_ANNOTATED_GETTER
public boolean IGNORE_EXTERNAL_SUPER_NOTNULL
public boolean REPORT_NOTNULL_PARAMETERS_OVERRIDES_NOT_ANNOTATED
@Deprecated public boolean REPORT_NOT_ANNOTATED_SETTER_PARAMETER
@Deprecated public boolean REPORT_ANNOTATION_NOT_PROPAGATED_TO_OVERRIDERS
public boolean REPORT_NULLS_PASSED_TO_NON_ANNOTATED_METHOD
public boolean REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER
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 PsiElementVisitor buildVisitor(ProblemsHolder holder, boolean isOnTheFly)
LocalInspectionToolPsiRecursiveElementVisitor)
since it will be fed with every element in the file anyway.
Visitor created must be thread-safe since it might be called on several elements concurrently.buildVisitor in class AbstractBaseJavaLocalInspectionToolholder - where visitor will register problems found.isOnTheFly - true if inspection was run in non-batch modePsiRecursiveVisitorprotected LocalQuickFix createNavigateToNullParameterUsagesFix(PsiParameter parameter)
public static java.lang.String getPresentableAnnoName(PsiAnnotation annotation)
public java.lang.String getGroupDisplayName()
getGroupDisplayName in class InspectionProfileEntryInspectionEP.groupDisplayName,
InspectionEP.groupKey,
InspectionEP.groupBundlepublic java.lang.String getShortName()
InspectionProfileEntrygetShortName in class InspectionProfileEntryInspectionEP.shortNamepublic static boolean shouldSkipOverriderAsGenerated(PsiMethod overriding)
public static boolean isNullableNotInferred(PsiModifierListOwner owner, boolean checkBases)
public javax.swing.JComponent createOptionsPanel()
InspectionProfileEntrycreateOptionsPanel in class InspectionProfileEntrynull if no UI options required.