public class PrintStreamJSONErrorManager extends BasicErrorManager
BasicErrorManager.| Constructor and Description |
|---|
PrintStreamJSONErrorManager(java.io.PrintStream stream,
SourceExcerptProvider sourceExcerptProvider)
Creates an error manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateReport()
Writes a report to an implementation-specific medium.
|
void |
println(CheckLevel level,
JSError error)
Print a message with a trailing new line.
|
void |
printSummary()
Print the summary of the compilation - number of errors and warnings.
|
getErrorCount, getErrors, getTypedPercent, getWarningCount, getWarnings, report, setTypedPercentpublic PrintStreamJSONErrorManager(java.io.PrintStream stream,
SourceExcerptProvider sourceExcerptProvider)
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@GwtIncompatible public void generateReport()
ErrorManagerErrorManager.report(com.google.javascript.jscomp.CheckLevel, com.google.javascript.jscomp.JSError) calls.generateReport in interface ErrorManagergenerateReport in class BasicErrorManagerpublic void println(CheckLevel level, JSError error)
BasicErrorManagerBasicErrorManager.generateReport() method when generating messages.println in class BasicErrorManagerpublic void printSummary()
BasicErrorManagerprintSummary in class BasicErrorManagerCopyright © 2009-2018 Google. All Rights Reserved.