Class ThreadSafeDelegatingErrorManager

  • All Implemented Interfaces:
    ErrorHandler, ErrorManager

    public class ThreadSafeDelegatingErrorManager
    extends java.lang.Object
    implements ErrorManager
    A simple delegating ErrorManager that provides a thread-safe wrapper for the one being delegated.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void generateReport()
      Writes a report to an implementation-specific medium.
      int getErrorCount()
      Gets the number of reported errors.
      com.google.common.collect.ImmutableList<JSError> getErrors()
      Gets all the errors.
      double getTypedPercent()
      Gets the percentage of typed expressions.
      int getWarningCount()
      Gets the number of reported warnings.
      com.google.common.collect.ImmutableList<JSError> getWarnings()
      Gets all the warnings.
      boolean hasHaltingErrors()
      Returns if the error manager has errors that should make compilation halt.
      void report​(CheckLevel level, JSError error)
      Reports an error.
      void setTypedPercent​(double typedPercent)
      Sets the percentage of typed expressions.
      boolean shouldReportConformanceViolation​(com.google.javascript.jscomp.Requirement requirement, com.google.common.base.Optional<com.google.javascript.jscomp.Requirement.WhitelistEntry> whitelistEntry, JSError diagnostic)
      Return true if the conformance violation should be reported.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait