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 |
---|---|
public static interface | DiagnosticFormatter.
This interface provides functionalities for tuning the output of a diagnostic formatter in multiple ways. |
public static enum | DiagnosticFormatter.
This enum defines a set of constants for all the kinds of position that a diagnostic can be asked for. |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if the source line this diagnostic refers to is to be displayeddiagnostic to be formatted diag)Whether the source code output for this diagnostic is to be displayed. |
public String | |
public String | Returns: string representation of the diagnostic prefixdiagnostic to be formatted diag, Locale locale object to be used for i18n l)Controls the way in which a diagnostic kind is displayed. |
public String | Returns: string representation of the diagnostic messagediagnostic to be formatted diag, Locale locale object to be used for i18n l)Controls the way in which a diagnostic message is displayed. |
public String | Returns: string representation of the diagnostic positiondiagnostic to be formatted diag, DiagnosticFormatter.enum constant representing the position kind pk,locale object to be used for i18n l)Controls the way in which a diagnostic position is displayed. |
public String | Returns: string representation of the diagnostic sourcediagnostic to be formatted diag, boolean whether the source fullname should be printed fullname, Locale locale object to be used for i18n l)Controls the way in which a diagnostic source is displayed. |
public DiagnosticFormatter. |
displaySource | back to summary |
---|---|
public boolean displaySource(D diag) Whether the source code output for this diagnostic is to be displayed.
|
format | back to summary |
---|---|
public String format(D diag, Locale l) Format the contents of a diagnostics. |
formatKind | back to summary |
---|---|
public String formatKind(D diag, Locale l) Controls the way in which a diagnostic kind is displayed. |
formatMessage | back to summary |
---|---|
public String formatMessage(D diag, Locale l) Controls the way in which a diagnostic message is displayed. |
formatPosition | back to summary |
---|---|
public String formatPosition(D diag, DiagnosticFormatter. Controls the way in which a diagnostic position is displayed.
|
formatSource | back to summary |
---|---|
public String formatSource(D diag, boolean fullname, Locale l) Controls the way in which a diagnostic source is displayed. |
getConfiguration | back to summary |
---|---|
public DiagnosticFormatter. Get a list of all the enabled verbosity options.
|
Modifier and Type | Class and Description |
---|---|
public static enum | DiagnosticFormatter.
A given diagnostic message can be divided into sub-parts each of which might/might not be displayed by the formatter, according to the current configuration settings. |
public static enum | DiagnosticFormatter.
A multiline limit control the verbosity of multiline diagnostics either by setting a maximum depth of nested multidiagnostics, or by limiting the amount of subdiagnostics attached to a given diagnostic (or both). |
Modifier and Type | Method and Description |
---|---|
public int | Returns: limit value or -1 if no limit is setthe kind of limit to be retrieved limitGet a multiline diagnostic limit. |
public Set | Returns: verbosity optionsRetrieve the set of diagnostic parts that should be displayed by the formatter. |
public void | setMultilineLimit(DiagnosticFormatter.
the kind of limit to be set limit,the limit value value)Set a limit for multiline diagnostics. |
public void | setVisible(Set<DiagnosticFormatter.
the parts to be set visiblePartsConfigure the set of diagnostic parts that should be displayed by the formatter. |
getMultilineLimit | back to summary |
---|---|
public int getMultilineLimit(DiagnosticFormatter. Get a multiline diagnostic limit.
|
getVisible | back to summary |
---|---|
public Set Retrieve the set of diagnostic parts that should be displayed by the formatter.
|
setMultilineLimit | back to summary |
---|---|
public void setMultilineLimit(DiagnosticFormatter. Set a limit for multiline diagnostics. Note Setting a limit has no effect if multiline diagnostics are either fully enabled or disabled.
|
setVisible | back to summary |
---|---|
public void setVisible(Set<DiagnosticFormatter. Configure the set of diagnostic parts that should be displayed by the formatter.
|
Modifier and Type | Field and Description |
---|---|
public static final DiagnosticFormatter. | DETAILS
Longer description that provides additional details w.r.t. the ones in the diagnostic's description. |
public static final DiagnosticFormatter. | JLS
JLS paragraph this diagnostic might refer to (if applicable). |
public static final DiagnosticFormatter. | SOURCE
Source line the diagnostic refers to (if applicable). |
public static final DiagnosticFormatter. | SUBDIAGNOSTICS
Subdiagnostics attached to a given multiline diagnostic. |
public static final DiagnosticFormatter. | SUMMARY
Short description of the diagnostic - usually one line long. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static DiagnosticFormatter. | |
public static DiagnosticFormatter. |
DETAILS | back to summary |
---|---|
public static final DiagnosticFormatter. Longer description that provides additional details w.r.t. the ones in the diagnostic's description. |
JLS | back to summary |
---|---|
public static final DiagnosticFormatter. JLS paragraph this diagnostic might refer to (if applicable). |
SOURCE | back to summary |
---|---|
public static final DiagnosticFormatter. Source line the diagnostic refers to (if applicable). |
SUBDIAGNOSTICS | back to summary |
---|---|
public static final DiagnosticFormatter. Subdiagnostics attached to a given multiline diagnostic. |
SUMMARY | back to summary |
---|---|
public static final DiagnosticFormatter. Short description of the diagnostic - usually one line long. |
DiagnosticPart | back to summary |
---|---|
private DiagnosticPart() |
valueOf | back to summary |
---|---|
public static DiagnosticFormatter. |
values | back to summary |
---|---|
public static DiagnosticFormatter. |
Modifier and Type | Field and Description |
---|---|
public static final DiagnosticFormatter. | DEPTH
Controls the maximum depth of nested multiline diagnostics. |
public static final DiagnosticFormatter. | LENGTH
Controls the maximum amount of subdiagnostics that are part of a given multiline diagnostic. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static DiagnosticFormatter. | |
public static DiagnosticFormatter. |
DEPTH | back to summary |
---|---|
public static final DiagnosticFormatter. Controls the maximum depth of nested multiline diagnostics. |
LENGTH | back to summary |
---|---|
public static final DiagnosticFormatter. Controls the maximum amount of subdiagnostics that are part of a given multiline diagnostic. |
MultilineLimit | back to summary |
---|---|
private MultilineLimit() |
valueOf | back to summary |
---|---|
public static DiagnosticFormatter. |
values | back to summary |
---|---|
public static DiagnosticFormatter. |
Modifier and Type | Field and Description |
---|---|
public static final DiagnosticFormatter. | COLUMN
Column number |
public static final DiagnosticFormatter. | END
End position |
public static final DiagnosticFormatter. | LINE
Line number |
public static final DiagnosticFormatter. | OFFSET
Offset position |
public static final DiagnosticFormatter. | START
Start position |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static DiagnosticFormatter. | |
public static DiagnosticFormatter. |
COLUMN | back to summary |
---|---|
public static final DiagnosticFormatter. Column number |
END | back to summary |
---|---|
public static final DiagnosticFormatter. End position |
LINE | back to summary |
---|---|
public static final DiagnosticFormatter. Line number |
OFFSET | back to summary |
---|---|
public static final DiagnosticFormatter. Offset position |
START | back to summary |
---|---|
public static final DiagnosticFormatter. Start position |
PositionKind | back to summary |
---|---|
private PositionKind() |
valueOf | back to summary |
---|---|
public static DiagnosticFormatter. |
values | back to summary |
---|---|
public static DiagnosticFormatter. |