Class BasicErrorManager
- java.lang.Object
-
- com.google.common.css.compiler.ast.BasicErrorManager
-
- All Implemented Interfaces:
ErrorManager
- Direct Known Subclasses:
AccessibleErrorManager,DefaultCommandLineCompiler.CompilerErrorManager,PrintStreamErrorManager
public abstract class BasicErrorManager extends java.lang.Object implements ErrorManager
A basic error manager that sorts all errors reported to it and generate a sorted report when thegenerateReport()method is called. (Sorting is based onGssError.compareTo(GssError).)This error manager delegates the method of output to subclasses via
print(String).
-
-
Constructor Summary
Constructors Constructor Description BasicErrorManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidgenerateReport()intgetErrorCount()booleanhasErrors()abstract voidprint(java.lang.String msg)voidreport(GssError error)Report an error message that makes compilation fail.voidreportWarning(GssError warning)Report an error message that does not make compilation fail.
-
-
-
Method Detail
-
report
public void report(GssError error)
Description copied from interface:ErrorManagerReport an error message that makes compilation fail.- Specified by:
reportin interfaceErrorManager
-
reportWarning
public void reportWarning(GssError warning)
Description copied from interface:ErrorManagerReport an error message that does not make compilation fail.- Specified by:
reportWarningin interfaceErrorManager
-
generateReport
public void generateReport()
- Specified by:
generateReportin interfaceErrorManager
-
getErrorCount
public int getErrorCount()
-
hasErrors
public boolean hasErrors()
- Specified by:
hasErrorsin interfaceErrorManager
-
print
public abstract void print(java.lang.String msg)
-
-