public class FixingErrorManager extends BasicErrorManager
An error manager that finds a SuggestedFix for all errors if possible.
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) |
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) |
generateReport, getErrorCount, getErrors, getTypedPercent, getWarningCount, getWarnings, setTypedPercent
public FixingErrorManager()
public FixingErrorManager(com.google.common.collect.ImmutableSet<DiagnosticType> unfixableErrors)
public void setCompiler(AbstractCompiler compiler)
public void report(CheckLevel level, JSError error)
ErrorManager
ErrorManager.generateReport()
at the discretion of the implementation.report
in interface ErrorHandler
report
in interface ErrorManager
report
in class BasicErrorManager
level
- the reporting levelerror
- the error to reportpublic java.util.List<SuggestedFix> getFixesForJsError(JSError error)
public java.util.Collection<SuggestedFix> getAllFixes()
public void printSummary()
BasicErrorManager
printSummary
in class BasicErrorManager
public void println(CheckLevel level, JSError error)
BasicErrorManager
BasicErrorManager.generateReport()
method when generating messages.println
in class BasicErrorManager
Copyright © 2009-2018 Google. All Rights Reserved.