public final class RawDiagnosticFormatter extends AbstractDiagnosticFormatter
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.
AbstractDiagnosticFormatter.SimpleConfiguration
DiagnosticFormatter.Configuration, DiagnosticFormatter.PositionKind
depth, messages, printer
Constructor and Description |
---|
RawDiagnosticFormatter(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)
Format a single argument of a given diagnostic.
|
String |
formatDiagnostic(JCDiagnostic d,
Locale l) |
String |
formatMessage(JCDiagnostic d,
Locale l)
Controls the way in which a diagnostic message is displayed.
|
boolean |
isRaw() |
protected String |
localize(Locale l,
String key,
Object... args)
Converts a String into a locale-dependent representation accordingly to a given locale.
|
displaySource, format, formatArguments, formatIterable, formatKind, formatLintCategory, formatPosition, formatSource, formatSourceLine, formatSubdiagnostic, formatSubdiagnostics, getConfiguration, getPrinter, indent, indentString, setPrinter
public RawDiagnosticFormatter(Options options)
options
- public String formatDiagnostic(JCDiagnostic d, Locale l)
formatDiagnostic
in class AbstractDiagnosticFormatter
public String formatMessage(JCDiagnostic d, Locale l)
DiagnosticFormatter
d
- diagnostic to be formattedl
- locale object to be used for i18nprotected String formatArgument(JCDiagnostic diag, Object arg, Locale l)
AbstractDiagnosticFormatter
formatArgument
in class AbstractDiagnosticFormatter
diag
- diagnostic whose argument is to be formattedarg
- argument to be formattedl
- locale object to be used for i18nprotected String localize(Locale l, String key, Object... args)
AbstractDiagnosticFormatter
localize
in class AbstractDiagnosticFormatter
l
- locale object to be used for i18nkey
- locale-independent key used for looking up in a resource fileargs
- localization argumentspublic boolean isRaw()
isRaw
in class AbstractDiagnosticFormatter
Copyright © 2017 earcam. All rights reserved.