示例#1
0
 public void error(char severity, String filename, int line, int column, String message) {
   if (messages == null) messages = new SourceMessages();
   messages.error(severity, filename, line, column, message);
 }
示例#2
0
 public void clearErrors() {
   if (messages != null) messages.clearErrors();
 }
示例#3
0
 public SourceError getErrors() {
   return messages == null ? null : messages.getErrors();
 }
示例#4
0
 public boolean seenErrors() {
   return messages != null && messages.seenErrors();
 }
示例#5
0
 /**
  * Returns true if any error were seen. Prints and clears the errors.
  *
  * @param out where to write the error message to
  * @param max maximum number of messages to print (can be 0)
  */
 public boolean checkErrors(PrintWriter out, int max) {
   return messages != null && messages.checkErrors(out, max);
 }