This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | RawDiagnosticFormatter.
Helper class to generate stable positions for AST nodes occurring in diagnostic arguments. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| pack-priv RawDiagnosticFormatter. | rawDiagnosticPosHelper
The raw diagnostic helper. |
| Access | Constructor and Description |
|---|---|
| public | RawDiagnosticFormatter(Options
the compiler options options)Create a formatter based on the supplied options. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | formatArgument(JCDiagnostic diag, Object arg, Locale l)
Overrides com. Format a single argument of a given diagnostic. |
| public String | formatDiagnostic(JCDiagnostic d, Locale l)
Implements abstract com.
|
| public String | formatMessage(JCDiagnostic d, Locale l)
Implements com. Controls the way in which a diagnostic message is displayed. |
| public boolean | |
| protected String | localize(Locale l, String key, Object... args)
Overrides com. Converts a String into a locale-dependent representation accordingly to a given locale. |
| CODES_NEEDING_SOURCE_NORMALIZATION | back to summary |
|---|---|
| private static final Set<String> CODES_NEEDING_SOURCE_NORMALIZATION | |
| rawDiagnosticPosHelper | back to summary |
|---|---|
| pack-priv RawDiagnosticFormatter. The raw diagnostic helper. | |
| RawDiagnosticFormatter | back to summary |
|---|---|
| public RawDiagnosticFormatter(Options options) Create a formatter based on the supplied options.
| |
| formatArgument | back to summary |
|---|---|
| protected String formatArgument(JCDiagnostic diag, Object arg, Locale l) Overrides com. Doc from com. Format a single argument of a given diagnostic.
| |
| formatDiagnostic | back to summary |
|---|---|
| public String formatDiagnostic(JCDiagnostic d, Locale l) Implements abstract com. | |
| formatMessage | back to summary |
|---|---|
| public String formatMessage(JCDiagnostic d, Locale l) Implements com. Doc from com. Controls the way in which a diagnostic message is displayed. | |
| isRaw | back to summary |
|---|---|
| public boolean isRaw() Overrides com.
| |
| localize | back to summary |
|---|---|
| protected String localize(Locale l, String key, Object... args) Overrides com. Doc from com. Converts a String into a locale-dependent representation accordingly to a given locale.
| |
line:col.
Note
since subdiagnostics can be created without a diagnostic source, a position helper should always refer to the toplevel diagnostic source.
| Modifier and Type | Field and Description |
|---|---|
| private final JCDiagnostic |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String |
| diag | back to summary |
|---|---|
| private final JCDiagnostic diag | |
| RawDiagnosticPosHelper | back to summary |
|---|---|
| pack-priv RawDiagnosticPosHelper(JCDiagnostic diag) | |
| getPosition | back to summary |
|---|---|
| pack-priv String getPosition(JCTree. | |