public class DiagSuppressor
extends java.lang.Object
Diag.Kind.WARNING Diags.
TODO(user): Change DiagSuppressor to implement DiagCollector and use this as the
DiagCollector in Model.java, pending work in cl/121629221| Constructor and Description |
|---|
DiagSuppressor(DiagCollector diagCollector) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPattern(Element elem,
java.lang.String pattern) |
void |
addSuppressionDirective(Element elem,
java.lang.String directive,
java.util.List<ConfigAspect> configAspects)
Adds a user-level suppression directive.
|
java.util.regex.Pattern |
getPattern(Element elem) |
boolean |
isSuppressedWarning(Diag diag,
Element elem)
Checks whether the given diagnosis is suppressed for the given element.
|
public DiagSuppressor(DiagCollector diagCollector)
public void addSuppressionDirective(Element elem, java.lang.String directive, java.util.List<ConfigAspect> configAspects)
public boolean isSuppressedWarning(Diag diag, Element elem)
Diag.Kind.WARNING can be suppressedpublic void addPattern(Element elem, java.lang.String pattern)
@Nullable public java.util.regex.Pattern getPattern(Element elem)