public String format(D diag, Locale l) { return formatter.format(diag, l); }
@Override public String getMessage(Locale locale) { return formatter.format(delegate, locale); }
public String format(D diag, Locale l) { return formatter.format(diag, l); }
/** * Return the standard presentation of this diagnostic. */ @Override public String toString() { return defaultFormatter.format(this,Locale.getDefault()); }
/** * Return the standard presentation of this diagnostic. */ @Override public String toString() { return defaultFormatter.format(this,Locale.getDefault()); }
/** * Write out a diagnostic. */ protected void writeDiagnostic(JCDiagnostic diag) { if (diagListener != null) { diagListener.report(diag); return; } PrintWriter writer = getWriterForDiagnosticType(diag.getType()); printRawLines(writer, diagFormatter.format(diag, messages.getCurrentLocale())); if (promptOnError) { switch (diag.getType()) { case ERROR: case WARNING: prompt(); } } if (dumpOnError) new RuntimeException().printStackTrace(writer); writer.flush(); }
/** * Write out a diagnostic. */ protected void writeDiagnostic(JCDiagnostic diag) { if (diagListener != null) { diagListener.report(diag); return; } PrintWriter writer = getWriterForDiagnosticType(diag.getType()); printRawLines(writer, diagFormatter.format(diag, messages.getCurrentLocale())); if (promptOnError) { switch (diag.getType()) { case ERROR: case WARNING: prompt(); } } if (dumpOnError) new RuntimeException().printStackTrace(writer); writer.flush(); }