public abstract class DeprecationInspectionBase extends LocalInspectionTool
Modifier and Type | Field and Description |
---|---|
boolean |
IGNORE_IN_SAME_OUTERMOST_CLASS |
EMPTY_ARRAY, VALID_ID_PATTERN
myNameProvider
Constructor and Description |
---|
DeprecationInspectionBase() |
Modifier and Type | Method and Description |
---|---|
static void |
checkDeprecated(PsiModifierListOwner element,
PsiElement elementToHighlight,
TextRange rangeInElement,
boolean ignoreInsideDeprecated,
boolean ignoreImportStatements,
boolean ignoreMethodsOfDeprecated,
boolean ignoreInSameOutermostClass,
ProblemsHolder holder,
boolean forRemoval,
ProblemHighlightType highlightType) |
protected static java.lang.String |
getDescription(java.lang.String description,
boolean forRemoval,
ProblemHighlightType highlightType) |
static java.lang.String |
getPresentableName(PsiElement psiElement) |
static boolean |
isElementInsideDeprecated(PsiElement element) |
boolean |
isEnabledByDefault()
DO NOT OVERRIDE this method.
|
protected static boolean |
isForRemovalAttributeSet(PsiAnnotation deprecatedAnnotation)
Returns value of
Deprecated.forRemoval() attribute, which is available since Java 9. |
protected static boolean |
isForRemovalAttributeSet(PsiModifierListOwner element) |
buildVisitor, buildVisitor, checkFile, getAlternativeID, getID, getProblemElement, getSuppressId, inspectionFinished, inspectionFinished, inspectionStarted, isValidID, processFile, runForWholeFile
cleanup, createOptionsPanel, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupDisplayName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions, writeSettings
public boolean isEnabledByDefault()
InspectionProfileEntry
isEnabledByDefault
in class InspectionProfileEntry
InspectionEP.enabledByDefault
public static void checkDeprecated(PsiModifierListOwner element, PsiElement elementToHighlight, TextRange rangeInElement, boolean ignoreInsideDeprecated, boolean ignoreImportStatements, boolean ignoreMethodsOfDeprecated, boolean ignoreInSameOutermostClass, ProblemsHolder holder, boolean forRemoval, ProblemHighlightType highlightType)
public static boolean isElementInsideDeprecated(PsiElement element)
public static java.lang.String getPresentableName(PsiElement psiElement)
protected static boolean isForRemovalAttributeSet(PsiModifierListOwner element)
protected static boolean isForRemovalAttributeSet(PsiAnnotation deprecatedAnnotation)
Deprecated.forRemoval()
attribute, which is available since Java 9.deprecatedAnnotation
- annotation instance to extract value oftrue
if the forRemoval
attribute is set to true,
false
if it isn't set or is set to false
.protected static java.lang.String getDescription(java.lang.String description, boolean forRemoval, ProblemHighlightType highlightType)