com.google.javascript.jscomp
Class DiagnosticGroup

java.lang.Object
  extended by com.google.javascript.jscomp.DiagnosticGroup

public class DiagnosticGroup
extends Object

Group a set of related diagnostic types together, so that they can be toggled on and off as one unit.


Constructor Summary
DiagnosticGroup(DiagnosticGroup... groups)
          Create a composite group.
DiagnosticGroup(DiagnosticType... types)
          Create a group that matches all errors of the given types.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagnosticGroup

public DiagnosticGroup(DiagnosticType... types)
Create a group that matches all errors of the given types.


DiagnosticGroup

public DiagnosticGroup(DiagnosticGroup... groups)
Create a composite group.

Method Detail

matches

public boolean matches(JSError error)
Returns whether the given error's type matches a type in this group.


matches

public boolean matches(DiagnosticType type)
Returns whether the given type matches a type in this group.