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 class |
| Access | Constructor and Description |
|---|---|
| public | BasicDiagnosticFormatter(Options
list of command-line options options, JavacMessages JavacMessages object used for i18n msgs)Create a basic formatter based on the supplied options. |
| public | BasicDiagnosticFormatter(JavacMessages
JavacMessages object used for i18n msgs)Create a standard basic formatter |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| 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. |
| protected String | |
| public BasicDiagnosticFormatter. | getConfiguration()
Overrides com. Implements com. Get a list of all the enabled verbosity options. |
| private String |
| BasicDiagnosticFormatter | back to summary |
|---|---|
| public BasicDiagnosticFormatter(Options options, JavacMessages msgs) Create a basic formatter based on the supplied options.
| |
| BasicDiagnosticFormatter | back to summary |
|---|---|
| public BasicDiagnosticFormatter(JavacMessages msgs) Create a standard basic formatter
| |
| addSourceLineIfNeeded | back to summary |
|---|---|
| protected String addSourceLineIfNeeded(JCDiagnostic d, String msg) | |
| 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. | |
| formatMeta | back to summary |
|---|---|
| protected String formatMeta(char c, JCDiagnostic d, Locale l) | |
| getConfiguration | back to summary |
|---|---|
| public BasicDiagnosticFormatter. Overrides com. Implements com. Doc from com. Get a list of all the enabled verbosity options.
| |
| selectFormat | back to summary |
|---|---|
| private String selectFormat(JCDiagnostic d) | |
| Modifier and Type | Class and Description |
|---|---|
| public static enum | BasicDiagnosticFormatter.
This enum contains all the kinds of formatting patterns supported by a basic diagnostic formatter. |
| public static enum | BasicDiagnosticFormatter.
A source positioning value controls the position (within a given diagnostic message) in which the source line the diagnostic refers to should be displayed (if applicable) |
| Modifier and Type | Field and Description |
|---|---|
| protected Map | |
| protected Map | |
| protected BasicDiagnosticFormatter. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getFormat(BasicDiagnosticFormatter.
the format kind for which to get the metachar string kindGet a metachar string for a specific format |
| public int | Returns: the amount of spaces used for the specified indentation kindthe diagnostic part for which the indentation is
to be retrieved diagPartGet the amount of spaces for a given indentation kind |
| public BasicDiagnosticFormatter. | Returns: the positioning value used by this formatterGet the source line positioning used by this formatter |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | setFormat(BasicDiagnosticFormatter.
the format kind to be set kind,the metachar string specifying the format s)Set a metachar string for a specific format |
| public void | setIndentation(DiagnosticFormatter.
amount of spaces for the specified diagnostic part nSpaces)Set the indentation level for various element of a given diagnostic - this might lead to more readable diagnostics |
| public void | setSourcePosition(BasicDiagnosticFormatter.
a positioning value for source line sourcePosSet the source line positioning used by this formatter |
| availableFormats | back to summary |
|---|---|
| protected Map<BasicDiagnosticFormatter. | |
| indentationLevels | back to summary |
|---|---|
| protected Map<DiagnosticFormatter. | |
| sourcePosition | back to summary |
|---|---|
| protected BasicDiagnosticFormatter. | |
| BasicConfiguration | back to summary |
|---|---|
public BasicConfiguration(Options options)
| |
| BasicConfiguration | back to summary |
|---|---|
public BasicConfiguration()
| |
| getFormat | back to summary |
|---|---|
| public String getFormat(BasicDiagnosticFormatter. Get a metachar string for a specific format
| |
| getIndentation | back to summary |
|---|---|
| public int getIndentation(DiagnosticFormatter. Get the amount of spaces for a given indentation kind
| |
| getSourcePosition | back to summary |
|---|---|
| public BasicDiagnosticFormatter. Get the source line positioning used by this formatter
| |
| initFormat | back to summary |
|---|---|
| private void initFormat() | |
| initFormats | back to summary |
|---|---|
| private void initFormats(String pos, String nopos, String clazz) | |
| initFormats | back to summary |
|---|---|
private void initFormats(String fmt)
| |
| initIndentation | back to summary |
|---|---|
| private void initIndentation() | |
| initOldFormat | back to summary |
|---|---|
| private void initOldFormat() | |
| setFormat | back to summary |
|---|---|
| public void setFormat(BasicDiagnosticFormatter. Set a metachar string for a specific format
| |
| setIndentation | back to summary |
|---|---|
| public void setIndentation(DiagnosticFormatter. Set the indentation level for various element of a given diagnostic - this might lead to more readable diagnostics
| |
| setSourcePosition | back to summary |
|---|---|
| public void setSourcePosition(BasicDiagnosticFormatter. Set the source line positioning used by this formatter
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BasicDiagnosticFormatter. | DEFAULT_CLASS_FORMAT
A format string to be used for diagnostics regarding classfiles |
| public static final BasicDiagnosticFormatter. | DEFAULT_NO_POS_FORMAT
A format string to be used for diagnostics without a given position. |
| public static final BasicDiagnosticFormatter. | DEFAULT_POS_FORMAT
A format string to be used for diagnostics with a given position. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BasicDiagnosticFormatter. | |
| public static BasicDiagnosticFormatter. |
| DEFAULT_CLASS_FORMAT | back to summary |
|---|---|
| public static final BasicDiagnosticFormatter. A format string to be used for diagnostics regarding classfiles | |
| DEFAULT_NO_POS_FORMAT | back to summary |
|---|---|
| public static final BasicDiagnosticFormatter. A format string to be used for diagnostics without a given position. | |
| DEFAULT_POS_FORMAT | back to summary |
|---|---|
| public static final BasicDiagnosticFormatter. A format string to be used for diagnostics with a given position. | |
| BasicFormatKind | back to summary |
|---|---|
| private BasicFormatKind() | |
| valueOf | back to summary |
|---|---|
| public static BasicDiagnosticFormatter. | |
| values | back to summary |
|---|---|
| public static BasicDiagnosticFormatter. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final BasicDiagnosticFormatter. | AFTER_SUMMARY
Source line is displayed after the first line of the diagnostic message |
| public static final BasicDiagnosticFormatter. | BOTTOM
Source line is displayed after the diagnostic message |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BasicDiagnosticFormatter. | |
| public static BasicDiagnosticFormatter. |
| AFTER_SUMMARY | back to summary |
|---|---|
| public static final BasicDiagnosticFormatter. Source line is displayed after the first line of the diagnostic message | |
| BOTTOM | back to summary |
|---|---|
| public static final BasicDiagnosticFormatter. Source line is displayed after the diagnostic message | |
| SourcePosition | back to summary |
|---|---|
| private SourcePosition() | |
| valueOf | back to summary |
|---|---|
| public static BasicDiagnosticFormatter. | |
| values | back to summary |
|---|---|
| public static BasicDiagnosticFormatter. | |