public class FixingErrorManager extends BasicErrorManager
An error manager that finds a SuggestedFix for all errors if possible.
SortingErrorManager.ErrorReportGenerator| Constructor and Description |
|---|
FixingErrorManager() |
FixingErrorManager(com.google.common.collect.ImmutableSet<DiagnosticType> unfixableErrors) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<SuggestedFix> |
getAllFixes()
Returns fixes for errors first, then fixes for warnings.
|
java.util.List<SuggestedFix> |
getFixesForJsError(JSError error) |
java.util.Collection<SuggestedFix> |
getSureFixes()
Returns fixes for errors and warnings that only have one 'sure' guaranteed fix.
|
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 |
report(CheckLevel level,
JSError error)
Reports an error.
|
void |
setCompiler(AbstractCompiler compiler) |
generateReportgetErrorCount, getErrors, getTypedPercent, getWarningCount, getWarnings, hasHaltingErrors, setTypedPercentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldReportConformanceViolationpublic FixingErrorManager()
public FixingErrorManager(com.google.common.collect.ImmutableSet<DiagnosticType> unfixableErrors)
public void setCompiler(AbstractCompiler compiler)
public void report(CheckLevel level, JSError error)
ErrorManagerErrorManager.generateReport() at the discretion of the implementation.report in interface ErrorHandlerreport in interface ErrorManagerreport in class SortingErrorManagerlevel - the reporting levelerror - the error to reportpublic java.util.List<SuggestedFix> getFixesForJsError(JSError error)
public java.util.Collection<SuggestedFix> getSureFixes()
public java.util.Collection<SuggestedFix> getAllFixes()
public void printSummary()
BasicErrorManagerprintSummary in class BasicErrorManagerpublic void println(CheckLevel level, JSError error)
BasicErrorManagerBasicErrorManager.generateReport() method when generating messages.println in class BasicErrorManagerCopyright © 2009-2020 Google. All Rights Reserved.