public class ComposeWarningsGuard extends WarningsGuard
WarningsGuard.Priority| Constructor and Description |
|---|
ComposeWarningsGuard(java.util.List<WarningsGuard> guards) |
ComposeWarningsGuard(WarningsGuard... guards) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
disables(DiagnosticGroup group)
Returns whether all warnings in the given diagnostic group will be
filtered out.
|
boolean |
enables(DiagnosticGroup group)
Determines whether this guard will "elevate" the status of any disabled
diagnostic type in the group to a warning or an error.
|
CheckLevel |
level(JSError error)
Returns a new check level for a given error.
|
protected ComposeWarningsGuard |
makeNonStrict()
Make a warnings guard that's the same as this one but with
all escalating guards turned down.
|
java.lang.String |
toString() |
getPrioritypublic ComposeWarningsGuard(java.util.List<WarningsGuard> guards)
public ComposeWarningsGuard(WarningsGuard... guards)
public CheckLevel level(JSError error)
WarningsGuardlevel in class WarningsGuarderror - a reported error.public boolean disables(DiagnosticGroup group)
WarningsGuarddisables in class WarningsGuardgroup - A group of DiagnosticTypes.public boolean enables(DiagnosticGroup group)
enables in class WarningsGuardgroup - A group of DiagnosticTypes.protected ComposeWarningsGuard makeNonStrict()
WarningsGuardmakeNonStrict in class WarningsGuardpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2019 Google. All Rights Reserved.