public class DiagnosticGroupWarningsGuard extends WarningsGuard
WarningsGuard.Priority
Constructor and Description |
---|
DiagnosticGroupWarningsGuard(DiagnosticGroup group,
CheckLevel level) |
Modifier and Type | Method and Description |
---|---|
boolean |
disables(DiagnosticGroup otherGroup)
Returns whether all warnings in the given diagnostic group will be
filtered out.
|
boolean |
enables(DiagnosticGroup otherGroup)
Returns whether any of the warnings in the given diagnostic group will be
upgraded to a warning or error.
|
CheckLevel |
level(JSError error)
Returns a new check level for a given error.
|
String |
toString() |
getPriority
public DiagnosticGroupWarningsGuard(DiagnosticGroup group, CheckLevel level)
public CheckLevel level(JSError error)
WarningsGuard
level
in class WarningsGuard
error
- a reported error.public boolean disables(DiagnosticGroup otherGroup)
WarningsGuard
disables
in class WarningsGuard
otherGroup
- A group of DiagnosticTypes.public boolean enables(DiagnosticGroup otherGroup)
WarningsGuard
enables
in class WarningsGuard
otherGroup
- A group of DiagnosticTypes.