public final class BasicErrorReporter extends java.lang.Object implements IErrorReporter
| Constructor and Description |
|---|
BasicErrorReporter()
Constructor.
|
BasicErrorReporter(java.io.PrintStream out)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ErrorCode> |
codes()
This method returns a list containing the error-codes that have been reported already.
|
int |
errorCount()
This method returns the number of errors that were thus far reported by this reporter.
|
void |
reportFailedCheck(ErrorReport report)
This method reports that a static-check failed.
|
java.util.List<ErrorReport> |
reports()
This method returns a list containing the error-reports that have been reported already.
|
void |
reportSyntaxError(java.net.URL file,
int line,
int column)
This method reports that the parsing of a module failed.
|
public BasicErrorReporter()
This constructor creates an error-reporter that reports errors using STDOUT.
public BasicErrorReporter(java.io.PrintStream out)
out - is the stream to report errors to.public void reportSyntaxError(java.net.URL file,
int line,
int column)
reportSyntaxError in interface IErrorReporterfile - is the path to the module's file, as supplied to the compiler.line - is an estimate of where parsing failed within the input.column - is an estimate of where parsing failed within the input.public void reportFailedCheck(ErrorReport report)
reportFailedCheck in interface IErrorReporterreport - is a an error-report that describes what went wrong.public int errorCount()
errorCount in interface IErrorReporterpublic java.util.List<ErrorCode> codes()
public java.util.List<ErrorReport> reports()