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(java.lang.String checkWarningsOnlyForPath) |
ShowByPathWarningsGuard(java.lang.String[] checkWarningsOnlyForPath) |
ShowByPathWarningsGuard(java.lang.String[] paths,
ShowByPathWarningsGuard.ShowType showType) |
ShowByPathWarningsGuard(java.lang.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, makeNonStrict
public ShowByPathWarningsGuard(java.lang.String checkWarningsOnlyForPath)
public ShowByPathWarningsGuard(java.lang.String[] checkWarningsOnlyForPath)
public ShowByPathWarningsGuard(java.lang.String path, ShowByPathWarningsGuard.ShowType showType)
public ShowByPathWarningsGuard(java.lang.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-2020 Google. All Rights Reserved.