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.
|
java.lang.String |
toString() |
getPrioritypublic DiagnosticGroupWarningsGuard(DiagnosticGroup group, CheckLevel level)
public CheckLevel level(JSError error)
WarningsGuardlevel in class WarningsGuarderror - a reported error.public boolean disables(DiagnosticGroup otherGroup)
WarningsGuarddisables in class WarningsGuardotherGroup - A group of DiagnosticTypes.public boolean enables(DiagnosticGroup otherGroup)
WarningsGuardenables in class WarningsGuardotherGroup - A group of DiagnosticTypes.protected WarningsGuard makeNonStrict()
WarningsGuardmakeNonStrict in class WarningsGuardpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2020 Google. All Rights Reserved.