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.
|
protected WarningsGuard |
makeNonStrict()
Make a warnings guard that's the same as this one but with
all escalating guards turned down.
|
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.protected WarningsGuard makeNonStrict()
WarningsGuard
makeNonStrict
in class WarningsGuard
Copyright © 2009-2017 Google. All Rights Reserved.