Package com.google.javascript.jscomp
Class PrintStreamErrorManager
- java.lang.Object
-
- com.google.javascript.jscomp.SortingErrorManager
-
- com.google.javascript.jscomp.BasicErrorManager
-
- com.google.javascript.jscomp.PrintStreamErrorManager
-
- All Implemented Interfaces:
ErrorHandler
,ErrorManager
@Deprecated public class PrintStreamErrorManager extends BasicErrorManager
Deprecated., Please use the {#SortingErrorManger} with a {#PrintStreamErrorReportGenerator} instead.An error manager that prints errors and warnings to the print stream provided in addition to the functionality of theBasicErrorManager
.It collaborates with a
SourceExcerptProvider
via aMessageFormatter
to display error messages with source context.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.javascript.jscomp.SortingErrorManager
SortingErrorManager.ErrorReportGenerator
-
-
Constructor Summary
Constructors Constructor Description PrintStreamErrorManager(MessageFormatter formatter, java.io.PrintStream stream)
Deprecated.Creates an error manager.PrintStreamErrorManager(java.io.PrintStream stream)
Deprecated.Creates an instance with a source-less error formatter.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
println(CheckLevel level, JSError error)
Deprecated.Print a message with a trailing new line.void
printSummary()
Deprecated.Print the summary of the compilation - number of errors and warnings.void
setSummaryDetailLevel(int summaryDetailLevel)
Deprecated.-
Methods inherited from class com.google.javascript.jscomp.BasicErrorManager
generateReport
-
Methods inherited from class com.google.javascript.jscomp.SortingErrorManager
getErrorCount, getErrors, getTypedPercent, getWarningCount, getWarnings, hasHaltingErrors, report, setTypedPercent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.javascript.jscomp.ErrorManager
shouldReportConformanceViolation
-
-
-
-
Constructor Detail
-
PrintStreamErrorManager
public PrintStreamErrorManager(MessageFormatter formatter, java.io.PrintStream stream)
Deprecated.Creates an error manager.- Parameters:
formatter
- the message formatter used to format the messagesstream
- the stream on which the errors and warnings should be printed. This class does not close the stream
-
PrintStreamErrorManager
public PrintStreamErrorManager(java.io.PrintStream stream)
Deprecated.Creates an instance with a source-less error formatter.
-
-
Method Detail
-
println
public void println(CheckLevel level, JSError error)
Deprecated.Description copied from class:BasicErrorManager
Print a message with a trailing new line. This method is called by theBasicErrorManager.generateReport()
method when generating messages.- Specified by:
println
in classBasicErrorManager
-
setSummaryDetailLevel
public void setSummaryDetailLevel(int summaryDetailLevel)
Deprecated.
-
printSummary
public void printSummary()
Deprecated.Description copied from class:BasicErrorManager
Print the summary of the compilation - number of errors and warnings.- Specified by:
printSummary
in classBasicErrorManager
-
-