|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.javascript.jscomp.BasicErrorManager com.google.javascript.jscomp.PrintStreamErrorManager
public class PrintStreamErrorManager
An error manager that prints errors and warnings to the print stream
provided in addition to the functionality of the
BasicErrorManager
.
It collaborates with a SourceExcerptProvider
via a
MessageFormatter
to display error messages with source context.
Constructor Summary | |
---|---|
PrintStreamErrorManager(MessageFormatter formatter,
PrintStream stream)
Creates an error manager. |
|
PrintStreamErrorManager(PrintStream stream)
Creates an instance with a source-less error formatter. |
Method Summary | |
---|---|
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. |
void |
setSummaryDetailLevel(int summaryDetailLevel)
|
Methods inherited from class com.google.javascript.jscomp.BasicErrorManager |
---|
generateReport, getErrorCount, getErrors, getTypedPercent, getWarningCount, getWarnings, report, setTypedPercent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrintStreamErrorManager(MessageFormatter formatter, PrintStream stream)
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 streampublic PrintStreamErrorManager(PrintStream stream)
Method Detail |
---|
public void println(CheckLevel level, JSError error)
BasicErrorManager
BasicErrorManager.generateReport()
method when generating messages.
println
in class BasicErrorManager
public void setSummaryDetailLevel(int summaryDetailLevel)
public void printSummary()
BasicErrorManager
printSummary
in class BasicErrorManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |