public class ThreadSafeDelegatingErrorManager extends java.lang.Object implements ErrorManager
ErrorManager that provides a thread-safe wrapper
for the one being delegated.| Constructor and Description |
|---|
ThreadSafeDelegatingErrorManager(ErrorManager delegated) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateReport()
Writes a report to an implementation-specific medium.
|
int |
getErrorCount()
Gets the number of reported errors.
|
JSError[] |
getErrors()
Gets all the errors.
|
double |
getTypedPercent()
Gets the percentage of typed expressions.
|
int |
getWarningCount()
Gets the number of reported warnings.
|
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(Requirement requirement,
JSError diagnostic)
Return true if the conformance violation should be reported.
|
public ThreadSafeDelegatingErrorManager(ErrorManager delegated)
public void report(CheckLevel level, JSError error)
ErrorManagerErrorManager.generateReport() at the discretion of the implementation.report in interface ErrorHandlerreport in interface ErrorManagerlevel - the reporting levelerror - the error to reportpublic void generateReport()
ErrorManagerErrorManager.report(com.google.javascript.jscomp.CheckLevel, com.google.javascript.jscomp.JSError) calls.generateReport in interface ErrorManagerpublic boolean hasHaltingErrors()
ErrorManagerhasHaltingErrors in interface ErrorManagerpublic int getErrorCount()
ErrorManagergetErrorCount in interface ErrorManagerpublic int getWarningCount()
ErrorManagergetWarningCount in interface ErrorManagerpublic JSError[] getErrors()
ErrorManagergetErrors in interface ErrorManagerpublic JSError[] getWarnings()
ErrorManagergetWarnings in interface ErrorManagerpublic void setTypedPercent(double typedPercent)
ErrorManagersetTypedPercent in interface ErrorManagerpublic double getTypedPercent()
ErrorManagergetTypedPercent in interface ErrorManagerpublic boolean shouldReportConformanceViolation(Requirement requirement, JSError diagnostic)
ErrorManagerrequirement, so it can be used to log whitelisted violations.shouldReportConformanceViolation in interface ErrorManagerCopyright © 2009-2018 Google. All Rights Reserved.