public abstract class WarningsGuard
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
WarningsGuard.Priority
Priority
|
Constructor and Description |
---|
WarningsGuard() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
disables(DiagnosticGroup group)
Returns whether all warnings in the given diagnostic group will be
filtered out.
|
protected boolean |
enables(DiagnosticGroup group)
Returns whether any of the warnings in the given diagnostic group will be
upgraded to a warning or error.
|
protected int |
getPriority()
The priority in which warnings guards are applied.
|
abstract 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.
|
public abstract CheckLevel level(JSError error)
error
- a reported error.protected int getPriority()
protected boolean disables(DiagnosticGroup group)
group
- A group of DiagnosticTypes.protected boolean enables(DiagnosticGroup group)
group
- A group of DiagnosticTypes.protected WarningsGuard makeNonStrict()
Copyright © 2009-2020 Google. All Rights Reserved.