public class PlainTextErrorReporter extends Object implements ErrorReporter
| Constructor and Description |
|---|
PlainTextErrorReporter(Script v)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(int lineNo,
int colNo,
String msg)
Report an error.
|
List<ErrorMessage> |
getErrors()
Get the reported errors.
|
int |
size()
Get the number of errors
|
String |
toString()
Print all the errors, one per line.
|
void |
updateNamespace()
Propagate the script namespace.
|
public PlainTextErrorReporter(Script v)
v - the script that is builtpublic int size()
public String toString()
public List<ErrorMessage> getErrors()
ErrorReportergetErrors in interface ErrorReporterpublic void append(int lineNo,
int colNo,
String msg)
ErrorReporterappend in interface ErrorReporterlineNo - the line indexcolNo - the column indexmsg - the error messagepublic void updateNamespace()
ErrorReporterupdateNamespace in interface ErrorReporterCopyright © 2016 University of Nice-Sophia Antipolis. All Rights Reserved.