Package com.google.javascript.jscomp
Class ShowByPathWarningsGuard
java.lang.Object
com.google.javascript.jscomp.WarningsGuard
com.google.javascript.jscomp.ShowByPathWarningsGuard
- All Implemented Interfaces:
Serializable
Control whether warnings should be restricted or suppressed for specified
paths.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumControls whether warnings should be restricted to a specified path or suppressed within the specified path.Nested classes/interfaces inherited from class com.google.javascript.jscomp.WarningsGuard
WarningsGuard.Priority -
Constructor Summary
ConstructorsConstructorDescriptionShowByPathWarningsGuard(String checkWarningsOnlyForPath) ShowByPathWarningsGuard(String[] checkWarningsOnlyForPath) ShowByPathWarningsGuard(String[] paths, ShowByPathWarningsGuard.ShowType showType) ShowByPathWarningsGuard(String path, ShowByPathWarningsGuard.ShowType showType) -
Method Summary
Modifier and TypeMethodDescriptionprotected intThe priority in which warnings guards are applied.Returns a new check level for a given error.Methods inherited from class com.google.javascript.jscomp.WarningsGuard
mustRunChecks
-
Constructor Details
-
ShowByPathWarningsGuard
-
ShowByPathWarningsGuard
-
ShowByPathWarningsGuard
-
ShowByPathWarningsGuard
-
-
Method Details
-
level
Description copied from class:WarningsGuardReturns a new check level for a given error.`null` means that this guard does not know what to do with the error. `null` can be used it chain multiple guards; if current guard returns null, then the next in the chain should process it.
- Specified by:
levelin classWarningsGuard- Parameters:
error- a reported error.- Returns:
- what level given error should have.
-
getPriority
protected int getPriority()Description copied from class:WarningsGuardThe priority in which warnings guards are applied. Lower means the guard will be applied sooner. Expressed on a scale of 1 to 100.- Overrides:
getPriorityin classWarningsGuard
-