Package com.google.javascript.jscomp
Class DiagnosticGroup
java.lang.Object
com.google.javascript.jscomp.DiagnosticGroup
- All Implemented Interfaces:
Serializable
Group a set of related diagnostic types together, so that they can be toggled on and off as one
unit.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDiagnosticGroup(DiagnosticGroup... groups) Create a composite group.DiagnosticGroup(DiagnosticType... types) Create a group that matches all errors of the given types.DiagnosticGroup(String name, DiagnosticGroup... groups) Create a composite group. -
Method Summary
Modifier and TypeMethodDescriptionstatic DiagnosticGroupforType(DiagnosticType type) Create a diagnostic group that matches only the given type.com.google.common.collect.ImmutableSet<DiagnosticType> getTypes()Returns all the types in this group.booleanmatches(DiagnosticType type) Returns whether the given type matches a type in this group.booleanReturns whether the given error's type matches a type in this group.toString()
-
Constructor Details
-
DiagnosticGroup
Create a group that matches all errors of the given types. -
DiagnosticGroup
Create a composite group. -
DiagnosticGroup
Create a composite group.
-
-
Method Details
-
forType
Create a diagnostic group that matches only the given type. -
matches
Returns whether the given error's type matches a type in this group. -
matches
Returns whether the given type matches a type in this group. -
getTypes
Returns all the types in this group. -
toString
-