|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
D - type of diagnostic handled by this formatterpublic interface DiagnosticFormatter<D extends Diagnostic<?>>
Provides simple functionalities for javac diagnostic formatting
| Nested Class Summary | |
|---|---|
static class |
DiagnosticFormatter.PositionKind
This enum defines a set of constants for all the kinds of position that a diagnostic can be asked for. |
| Method Summary | |
|---|---|
boolean |
displaySource(D diag)
Whether the source code output for this diagnostic is to be displayed |
java.lang.String |
format(D diag,
java.util.Locale l)
Format the contents of a diagnostics |
java.lang.String |
formatKind(D diag,
java.util.Locale l)
Controls the way in which a diagnostic kind is displayed. |
java.lang.String |
formatMessage(D diag,
java.util.Locale l)
Controls the way in which a diagnostic message is displayed. |
java.lang.String |
formatPosition(D diag,
DiagnosticFormatter.PositionKind pk,
java.util.Locale l)
Controls the way in which a diagnostic position is displayed. |
java.lang.String |
formatSource(D diag,
boolean fullname,
java.util.Locale l)
Controls the way in which a diagnostic source is displayed. |
| Method Detail |
|---|
boolean displaySource(D diag)
diag - diagnostic to be formatted
java.lang.String format(D diag,
java.util.Locale l)
diag - the diagnostic to be formattedl - locale object to be used for i18n
java.lang.String formatMessage(D diag,
java.util.Locale l)
diag - diagnostic to be formattedl - locale object to be used for i18n
java.lang.String formatKind(D diag,
java.util.Locale l)
diag - diagnostic to be formattedl - locale object to be used for i18n
java.lang.String formatSource(D diag,
boolean fullname,
java.util.Locale l)
diag - diagnostic to be formattedl - locale object to be used for i18nfullname - whether the source fullname should be printed
java.lang.String formatPosition(D diag,
DiagnosticFormatter.PositionKind pk,
java.util.Locale l)
diag - diagnostic to be formattedpk - enum constant representing the position kindl - locale object to be used for i18n
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||