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() |
getPriority
public ComposeWarningsGuard(java.util.List<WarningsGuard> guards)
public ComposeWarningsGuard(WarningsGuard... guards)
public CheckLevel level(JSError error)
WarningsGuard
level
in class WarningsGuard
error
- a reported error.public boolean disables(DiagnosticGroup group)
WarningsGuard
disables
in class WarningsGuard
group
- A group of DiagnosticTypes.public boolean enables(DiagnosticGroup group)
enables
in class WarningsGuard
group
- A group of DiagnosticTypes.protected ComposeWarningsGuard makeNonStrict()
WarningsGuard
makeNonStrict
in class WarningsGuard
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2018 Google. All Rights Reserved.