Class BasicErrorManager

java.lang.Object
com.google.common.css.compiler.ast.BasicErrorManager
All Implemented Interfaces:
ErrorManager
Direct Known Subclasses:
AccessibleErrorManager, DefaultCommandLineCompiler.CompilerErrorManager, PrintStreamErrorManager

public abstract class BasicErrorManager extends Object implements ErrorManager
A basic error manager that sorts all errors reported to it and generate a sorted report when the generateReport() method is called. (Sorting is based on GssError.compareTo(GssError).)

This error manager delegates the method of output to subclasses via print(String).

  • Field Details

  • Constructor Details

    • BasicErrorManager

      public BasicErrorManager()
  • Method Details

    • report

      public void report(GssError error)
      Description copied from interface: ErrorManager
      Report an error message that makes compilation fail.
      Specified by:
      report in interface ErrorManager
    • reportWarning

      public void reportWarning(GssError warning)
      Description copied from interface: ErrorManager
      Report an error message that does not make compilation fail.
      Specified by:
      reportWarning in interface ErrorManager
    • generateReport

      public void generateReport()
      Specified by:
      generateReport in interface ErrorManager
    • getErrorCount

      public int getErrorCount()
    • hasErrors

      public boolean hasErrors()
      Specified by:
      hasErrors in interface ErrorManager
    • print

      public abstract void print(String msg)