public class DefaultXmlSuppressionProvider extends XmlSuppressionProvider implements InspectionSuppressor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SUPPRESS_MARK |
EP_NAME
Constructor and Description |
---|
DefaultXmlSuppressionProvider() |
Modifier and Type | Method and Description |
---|---|
protected PsiElement |
findFileSuppression(PsiElement anchor,
java.lang.String id,
PsiElement originalElement) |
protected PsiElement |
findSuppression(PsiElement anchor,
java.lang.String id,
PsiElement originalElement) |
protected PsiElement |
findSuppressionLeaf(PsiElement leaf,
java.lang.String id,
int offset) |
protected java.lang.String |
getPrefix() |
protected java.lang.String |
getSuffix() |
protected java.lang.String |
getSuppressionText(java.lang.String inspectionId,
java.lang.String originalText) |
boolean |
isProviderAvailable(PsiFile file) |
boolean |
isSuppressedFor(PsiElement element,
java.lang.String inspectionId) |
protected void |
suppress(PsiFile file,
PsiElement suppressionElement,
java.lang.String inspectionId,
int offset) |
void |
suppressForFile(PsiElement element,
java.lang.String inspectionId) |
void |
suppressForTag(PsiElement element,
java.lang.String inspectionId) |
getSuppressActions, isSuppressed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSuppressActions
public static final java.lang.String SUPPRESS_MARK
public boolean isProviderAvailable(PsiFile file)
isProviderAvailable
in class XmlSuppressionProvider
public boolean isSuppressedFor(PsiElement element, java.lang.String inspectionId)
isSuppressedFor
in interface InspectionSuppressor
isSuppressedFor
in class XmlSuppressionProvider
CustomSuppressableInspectionTool.isSuppressedFor(PsiElement)
public void suppressForFile(PsiElement element, java.lang.String inspectionId)
suppressForFile
in class XmlSuppressionProvider
public void suppressForTag(PsiElement element, java.lang.String inspectionId)
suppressForTag
in class XmlSuppressionProvider
protected PsiElement findSuppression(PsiElement anchor, java.lang.String id, PsiElement originalElement)
protected PsiElement findFileSuppression(PsiElement anchor, java.lang.String id, PsiElement originalElement)
protected PsiElement findSuppressionLeaf(PsiElement leaf, java.lang.String id, int offset)
protected void suppress(PsiFile file, PsiElement suppressionElement, java.lang.String inspectionId, int offset)
protected java.lang.String getSuppressionText(java.lang.String inspectionId, java.lang.String originalText)
protected java.lang.String getPrefix()
protected java.lang.String getSuffix()