public class DiagnosticGroup extends Object implements Serializable
Constructor and Description |
---|
DiagnosticGroup(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.
|
Modifier and Type | Method and Description |
---|---|
static DiagnosticGroup |
forType(DiagnosticType type)
Create a diagnostic group that matches only the given type.
|
Iterable<DiagnosticType> |
getTypes()
Returns an iterable over all the types 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.
|
String |
toString() |
public DiagnosticGroup(DiagnosticType... types)
public DiagnosticGroup(DiagnosticGroup... groups)
public DiagnosticGroup(String name, DiagnosticGroup... groups)
public static DiagnosticGroup forType(DiagnosticType type)
public boolean matches(JSError error)
public boolean matches(DiagnosticType type)
public Iterable<DiagnosticType> getTypes()
Copyright © 2009-2017 Google. All Rights Reserved.