Class BasicErrorManager
java.lang.Object
com.google.common.css.compiler.ast.BasicErrorManager
- All Implemented Interfaces:
ErrorManager
- Direct Known Subclasses:
AccessibleErrorManager,DefaultCommandLineCompiler.CompilerErrorManager,PrintStreamErrorManager
A basic error manager that sorts all errors reported to it and generate a
sorted report when the
generateReport() method is called.
(Sorting is based on GssError.compareTo(GssError).)
This error manager delegates the method of output to subclasses via print(String).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintbooleanabstract voidvoidReport an error message that makes compilation fail.voidreportWarning(GssError warning) Report an error message that does not make compilation fail.
-
Field Details
-
errors
-
warnings
-
-
Constructor Details
-
BasicErrorManager
public BasicErrorManager()
-
-
Method Details
-
report
Description copied from interface:ErrorManagerReport an error message that makes compilation fail.- Specified by:
reportin interfaceErrorManager
-
reportWarning
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
-