Class DiagnosticGroup

  • All Implemented Interfaces:
    java.io.Serializable

    public final class DiagnosticGroup
    extends java.lang.Object
    implements java.io.Serializable
    Group a set of related diagnostic types together, so that they can be toggled on and off as one unit.
    See Also:
    Serialized Form
    • 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.
      • DiagnosticGroup

        public DiagnosticGroup​(java.lang.String name,
                               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.
      • getTypes

        public com.google.common.collect.ImmutableSet<DiagnosticType> getTypes()
        Returns all the types in this group.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object