Package com.google.javascript.jscomp
Class DiagnosticGroupPathSuppressingWarningsGuard
- java.lang.Object
-
- com.google.javascript.jscomp.WarningsGuard
-
- com.google.javascript.jscomp.DiagnosticGroupWarningsGuard
-
- com.google.javascript.jscomp.DiagnosticGroupPathSuppressingWarningsGuard
-
- All Implemented Interfaces:
java.io.Serializable
public class DiagnosticGroupPathSuppressingWarningsGuard extends DiagnosticGroupWarningsGuard
A warnings guard that suppresses warnings for a particular diagnostic group for a file that contains the specified substring.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.javascript.jscomp.WarningsGuard
WarningsGuard.Priority
-
-
Constructor Summary
Constructors Constructor Description DiagnosticGroupPathSuppressingWarningsGuard(DiagnosticGroup type, java.lang.String part)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
disables(DiagnosticGroup type)
Does not suppress all warnings of any type.CheckLevel
level(JSError error)
Does not touch warnings in other paths.java.lang.String
toString()
-
Methods inherited from class com.google.javascript.jscomp.DiagnosticGroupWarningsGuard
enables
-
Methods inherited from class com.google.javascript.jscomp.WarningsGuard
getPriority
-
-
-
-
Constructor Detail
-
DiagnosticGroupPathSuppressingWarningsGuard
public DiagnosticGroupPathSuppressingWarningsGuard(DiagnosticGroup type, java.lang.String part)
-
-
Method Detail
-
disables
public boolean disables(DiagnosticGroup type)
Does not suppress all warnings of any type.- Overrides:
disables
in classDiagnosticGroupWarningsGuard
- Parameters:
type
- A group of DiagnosticTypes.- Returns:
- Whether all warnings of these types are disabled by this guard.
-
level
public CheckLevel level(JSError error)
Does not touch warnings in other paths.- Overrides:
level
in classDiagnosticGroupWarningsGuard
- Parameters:
error
- a reported error.- Returns:
- what level given error should have.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classDiagnosticGroupWarningsGuard
-
-