public class DiagnosticGroup
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private static long |
serialVersionUID |
private static java.util.Map<DiagnosticType,DiagnosticGroup> |
singletons |
private java.util.Set<DiagnosticType> |
types |
Modifier | Constructor and Description |
---|---|
|
DiagnosticGroup(DiagnosticGroup... groups)
Create a composite group.
|
|
DiagnosticGroup(DiagnosticType... types)
Create a group that matches all errors of the given types.
|
private |
DiagnosticGroup(DiagnosticType type)
Create a diagnostic group with no name that only matches the given type.
|
|
DiagnosticGroup(java.lang.String name,
DiagnosticGroup... groups)
Create a composite group.
|
(package private) |
DiagnosticGroup(java.lang.String name,
DiagnosticType... types)
Create a group that matches all errors of the given types.
|
Modifier and Type | Method and Description |
---|---|
static DiagnosticGroup |
forType(DiagnosticType type)
Create a diagnostic group that matches only the given type.
|
java.lang.Iterable<DiagnosticType> |
getTypes()
Returns an iterable over all the types in this group.
|
(package private) boolean |
isSubGroup(DiagnosticGroup group)
Returns whether all of the types in the given group are in this group.
|
boolean |
matches(DiagnosticType type)
Returns whether the given type matches a type in this group.
|
boolean |
matches(JSError error)
Returns whether the given error's type matches a type
in this group.
|
java.lang.String |
toString() |
private static final long serialVersionUID
private final java.util.Set<DiagnosticType> types
private final java.lang.String name
private static final java.util.Map<DiagnosticType,DiagnosticGroup> singletons
DiagnosticGroup(java.lang.String name, DiagnosticType... types)
public DiagnosticGroup(DiagnosticType... types)
private DiagnosticGroup(DiagnosticType type)
public DiagnosticGroup(DiagnosticGroup... groups)
public DiagnosticGroup(java.lang.String name, DiagnosticGroup... groups)
public static DiagnosticGroup forType(DiagnosticType type)
public boolean matches(JSError error)
public boolean matches(DiagnosticType type)
boolean isSubGroup(DiagnosticGroup group)
public java.lang.Iterable<DiagnosticType> getTypes()
public java.lang.String toString()
toString
in class java.lang.Object