Package com.google.javascript.jscomp
Class JsonErrorReportGenerator
- java.lang.Object
-
- com.google.javascript.jscomp.JsonErrorReportGenerator
-
- All Implemented Interfaces:
SortingErrorManager.ErrorReportGenerator
public class JsonErrorReportGenerator extends java.lang.Object implements SortingErrorManager.ErrorReportGenerator
An error report generator that prints error and warning data to the print stream as an array of JSON objects.
-
-
Constructor Summary
Constructors Constructor Description JsonErrorReportGenerator(java.io.PrintStream stream, SourceExcerptProvider sourceExcerptProvider)
Creates an error manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateReport(SortingErrorManager manager)
-
-
-
Constructor Detail
-
JsonErrorReportGenerator
public JsonErrorReportGenerator(java.io.PrintStream stream, SourceExcerptProvider sourceExcerptProvider)
Creates an error manager.- Parameters:
stream
- the stream on which the errors and warnings should be printed. This class does not close the streamsourceExcerptProvider
- used to retrieve the source context which generated the error
-
-
Method Detail
-
generateReport
@GwtIncompatible public void generateReport(SortingErrorManager manager)
- Specified by:
generateReport
in interfaceSortingErrorManager.ErrorReportGenerator
-
-