public final class ShowByPathWarningsGuard extends WarningsGuard
Modifier and Type | Class and Description |
---|---|
static class |
ShowByPathWarningsGuard.ShowType
Controls whether warnings should be restricted to a specified path or
suppressed within the specified path.
|
WarningsGuard.Priority
Constructor and Description |
---|
ShowByPathWarningsGuard(String checkWarningsOnlyForPath) |
ShowByPathWarningsGuard(String[] checkWarningsOnlyForPath) |
ShowByPathWarningsGuard(String[] paths,
ShowByPathWarningsGuard.ShowType showType) |
ShowByPathWarningsGuard(String path,
ShowByPathWarningsGuard.ShowType showType) |
Modifier and Type | Method and Description |
---|---|
protected int |
getPriority()
The priority in which warnings guards are applied.
|
CheckLevel |
level(JSError error)
Returns a new check level for a given error.
|
disables, enables, enablesExplicitly, makeNonStrict
public ShowByPathWarningsGuard(String checkWarningsOnlyForPath)
public ShowByPathWarningsGuard(String[] checkWarningsOnlyForPath)
public ShowByPathWarningsGuard(String path, ShowByPathWarningsGuard.ShowType showType)
public ShowByPathWarningsGuard(String[] paths, ShowByPathWarningsGuard.ShowType showType)
public CheckLevel level(JSError error)
WarningsGuard
level
in class WarningsGuard
error
- a reported error.protected int getPriority()
WarningsGuard
getPriority
in class WarningsGuard
Copyright © 2009-2017 Google. All Rights Reserved.