public class SuppressionUtil extends SuppressionUtilCore
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL |
static java.lang.String |
COMMON_SUPPRESS_REGEXP
Common part of regexp for suppressing in line comments for different languages.
|
static java.util.regex.Pattern |
SUPPRESS_IN_LINE_COMMENT_PATTERN |
SUPPRESS_INSPECTIONS_TAG_NAME
Modifier and Type | Method and Description |
---|---|
static PsiComment |
createComment(Project project,
java.lang.String commentText,
Language language) |
static void |
createSuppression(Project project,
PsiElement container,
java.lang.String id,
Language commentLanguage) |
static java.lang.String |
getLineCommentPrefix(PsiElement comment) |
static PsiElement |
getStatementToolSuppressedIn(PsiElement place,
java.lang.String toolId,
java.lang.Class<? extends PsiElement> statementClass) |
static PsiElement |
getStatementToolSuppressedIn(PsiElement place,
java.lang.String toolId,
java.lang.Class<? extends PsiElement> statementClass,
java.util.regex.Pattern suppressInLineCommentPattern) |
static boolean |
inspectionResultSuppressed(PsiElement place,
InspectionProfileEntry tool) |
static boolean |
inspectionResultSuppressed(PsiElement place,
LocalInspectionTool tool) |
static boolean |
isInspectionToolIdMentioned(java.lang.String inspectionsList,
java.lang.String inspectionToolID) |
static boolean |
isSuppressed(PsiElement psiElement,
java.lang.String id) |
static boolean |
isSuppressedInStatement(PsiElement place,
java.lang.String toolId,
java.lang.Class<? extends PsiElement> statementClass) |
static boolean |
isSuppressionComment(PsiElement comment) |
static void |
replaceSuppressionComment(PsiElement comment,
java.lang.String id,
boolean replaceOtherSuppressionIds,
Language commentLanguage) |
public static final java.lang.String COMMON_SUPPRESS_REGEXP
public static final java.util.regex.Pattern SUPPRESS_IN_LINE_COMMENT_PATTERN
public static final java.lang.String ALL
public static boolean isInspectionToolIdMentioned(java.lang.String inspectionsList, java.lang.String inspectionToolID)
public static PsiElement getStatementToolSuppressedIn(PsiElement place, java.lang.String toolId, java.lang.Class<? extends PsiElement> statementClass)
public static PsiElement getStatementToolSuppressedIn(PsiElement place, java.lang.String toolId, java.lang.Class<? extends PsiElement> statementClass, java.util.regex.Pattern suppressInLineCommentPattern)
public static boolean isSuppressedInStatement(PsiElement place, java.lang.String toolId, java.lang.Class<? extends PsiElement> statementClass)
public static PsiComment createComment(Project project, java.lang.String commentText, Language language)
public static java.lang.String getLineCommentPrefix(PsiElement comment)
public static boolean isSuppressionComment(PsiElement comment)
public static void replaceSuppressionComment(PsiElement comment, java.lang.String id, boolean replaceOtherSuppressionIds, Language commentLanguage)
public static void createSuppression(Project project, PsiElement container, java.lang.String id, Language commentLanguage)
public static boolean isSuppressed(PsiElement psiElement, java.lang.String id)
public static boolean inspectionResultSuppressed(PsiElement place, LocalInspectionTool tool)
public static boolean inspectionResultSuppressed(PsiElement place, InspectionProfileEntry tool)