public class JavaSuppressionUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SUPPRESS_INSPECTIONS_ANNOTATION_NAME |
Constructor and Description |
---|
JavaSuppressionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addSuppressAnnotation(Project project,
PsiElement container,
PsiModifierListOwner modifierOwner,
java.lang.String id) |
static boolean |
alreadyHas14Suppressions(PsiJavaDocumentedElement commentOwner) |
static boolean |
canHave15Suppressions(PsiElement file) |
static <T extends PsiElement> |
getElementMemberSuppressedIn(T owner,
java.lang.String inspectionToolID) |
static PsiElement |
getElementToAnnotate(PsiElement element,
PsiElement container) |
static PsiElement |
getElementToolSuppressedIn(PsiElement place,
java.lang.String toolId) |
static java.util.Collection<java.lang.String> |
getInspectionIdsSuppressedInAnnotation(PsiModifierList modifierList) |
static java.util.Collection<java.lang.String> |
getInspectionIdsSuppressedInAnnotation(PsiModifierListOwner owner) |
static java.lang.String |
getSuppressedInspectionIdsIn(PsiElement element) |
public static final java.lang.String SUPPRESS_INSPECTIONS_ANNOTATION_NAME
public static boolean alreadyHas14Suppressions(PsiJavaDocumentedElement commentOwner)
public static java.util.Collection<java.lang.String> getInspectionIdsSuppressedInAnnotation(PsiModifierList modifierList)
public static <T extends PsiElement> PsiElement getElementMemberSuppressedIn(T owner, java.lang.String inspectionToolID)
public static java.util.Collection<java.lang.String> getInspectionIdsSuppressedInAnnotation(PsiModifierListOwner owner)
public static java.lang.String getSuppressedInspectionIdsIn(PsiElement element)
public static PsiElement getElementToolSuppressedIn(PsiElement place, java.lang.String toolId)
public static void addSuppressAnnotation(Project project, PsiElement container, PsiModifierListOwner modifierOwner, java.lang.String id) throws IncorrectOperationException
IncorrectOperationException
public static boolean canHave15Suppressions(PsiElement file)
public static PsiElement getElementToAnnotate(PsiElement element, PsiElement container)