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_PATTERN
myNameProvider
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, checkMethod
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
@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
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 PsiElementVisitor buildVisitor(ProblemsHolder holder, boolean isOnTheFly)
LocalInspectionTool
PsiRecursiveElementVisitor
)
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 AbstractBaseJavaLocalInspectionTool
holder
- where visitor will register problems found.isOnTheFly
- true if inspection was run in non-batch modePsiRecursiveVisitor
protected LocalQuickFix createNavigateToNullParameterUsagesFix(PsiParameter parameter)
public static java.lang.String getPresentableAnnoName(PsiAnnotation annotation)
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 static boolean shouldSkipOverriderAsGenerated(PsiMethod overriding)
public static boolean isNullableNotInferred(PsiModifierListOwner owner, boolean checkBases)
public javax.swing.JComponent createOptionsPanel()
InspectionProfileEntry
createOptionsPanel
in class InspectionProfileEntry
null
if no UI options required.