public final class DiagnosticGroup
extends java.lang.Object
implements java.io.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(java.lang.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.
|
com.google.common.collect.ImmutableSet<DiagnosticType> |
getTypes()
Returns 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.
|
java.lang.String |
toString() |
public DiagnosticGroup(DiagnosticType... types)
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)
public com.google.common.collect.ImmutableSet<DiagnosticType> getTypes()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2017 Google. All Rights Reserved.