public class JSweetDiagnosticHandler
extends com.sun.tools.javac.util.BasicDiagnosticFormatter
com.sun.tools.javac.util.BasicDiagnosticFormatter.BasicConfiguration| Modifier and Type | Field and Description |
|---|---|
protected JSweetContext |
context
The transpilation context.
|
protected TranspilationHandler |
transpilationHandler
The transpilation message/warning/error handler.
|
| Constructor and Description |
|---|
JSweetDiagnosticHandler(TranspilationHandler transpilationHandler,
JSweetContext context)
Creates a new diagnostic handler.
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(com.sun.tools.javac.util.JCDiagnostic diagnostic,
Locale locale) |
protected void |
reportJavaError(com.sun.tools.javac.util.JCDiagnostic diagnostic,
Locale locale)
Override this method to tune how JSweet reports the errors.
|
addSourceLineIfNeeded, formatDiagnostic, formatMessage, formatMeta, getConfigurationdisplaySource, formatArgument, formatArguments, formatIterable, formatKind, formatLintCategory, formatPosition, formatSource, formatSourceLine, formatSubdiagnostic, formatSubdiagnostics, getPrinter, indent, indentString, isRaw, localize, setPrinterprotected TranspilationHandler transpilationHandler
protected JSweetContext context
public JSweetDiagnosticHandler(TranspilationHandler transpilationHandler, JSweetContext context)
protected void reportJavaError(com.sun.tools.javac.util.JCDiagnostic diagnostic,
Locale locale)
diagnostic - a Java-reported diagnostic (errors, warning, etc.)locale - a locale