public class SuppressManagerImpl extends SuppressManager implements RedundantSuppressionDetector
BatchSuppressManager.SERVICE
SUPPRESS_INSPECTIONS_ANNOTATION_NAME
Constructor and Description |
---|
SuppressManagerImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
alreadyHas14Suppressions(PsiDocCommentOwner commentOwner) |
boolean |
canHave15Suppressions(PsiElement file) |
LocalQuickFix |
createRemoveRedundantSuppressionFix(java.lang.String toolId) |
SuppressIntentionAction [] |
createSuppressActions(HighlightDisplayKey displayKey) |
PsiElement |
getElementToolSuppressedIn(PsiElement place,
java.lang.String toolId) |
SuppressQuickFix [] |
getSuppressActions(PsiElement element,
java.lang.String toolId) |
java.lang.String |
getSuppressedInspectionIdsIn(PsiElement element) |
java.lang.String |
getSuppressionIds(PsiElement element) |
boolean |
isSuppressedFor(PsiElement element,
java.lang.String toolId) |
boolean |
isSuppressionFor(PsiElement elementWithSuppression,
PsiElement place,
java.lang.String toolId) |
createBatchSuppressActions, getInstance, isSuppressedInspectionName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHighlightingRange
public SuppressIntentionAction [] createSuppressActions(HighlightDisplayKey displayKey)
createSuppressActions
in class SuppressManager
public SuppressQuickFix [] getSuppressActions(PsiElement element, java.lang.String toolId)
getSuppressActions
in interface InspectionSuppressor
BatchSuppressableTool.getBatchSuppressActions(PsiElement)
public boolean isSuppressedFor(PsiElement element, java.lang.String toolId)
isSuppressedFor
in interface BatchSuppressManager
isSuppressedFor
in interface InspectionSuppressor
CustomSuppressableInspectionTool.isSuppressedFor(PsiElement)
public java.lang.String getSuppressedInspectionIdsIn(PsiElement element)
getSuppressedInspectionIdsIn
in interface BatchSuppressManager
public PsiElement getElementToolSuppressedIn(PsiElement place, java.lang.String toolId)
getElementToolSuppressedIn
in interface BatchSuppressManager
public boolean canHave15Suppressions(PsiElement file)
canHave15Suppressions
in interface BatchSuppressManager
public boolean alreadyHas14Suppressions(PsiDocCommentOwner commentOwner)
alreadyHas14Suppressions
in interface BatchSuppressManager
public java.lang.String getSuppressionIds(PsiElement element)
getSuppressionIds
in interface RedundantSuppressionDetector
element
public boolean isSuppressionFor(PsiElement elementWithSuppression, PsiElement place, java.lang.String toolId)
isSuppressionFor
in interface RedundantSuppressionDetector
elementWithSuppression
- e.g. comment or @SuppressWarning annotationplace
- element with currently suppressed warningplace
is suppressed by elementWithSuppression
public LocalQuickFix createRemoveRedundantSuppressionFix(java.lang.String toolId)
createRemoveRedundantSuppressionFix
in interface RedundantSuppressionDetector
toolId
suppression from list of suppressions