| java.lang.Object com.sun.tools.javac.util.DiagnosticFormatter
DiagnosticFormatter | public class DiagnosticFormatter (Code) | | A formatter for diagnostic messages.
The formatter will format a diagnostic according to one of two format strings, depending on whether
or not the source name and position are set. The format is a printf-like string,
with the following special characters:
- %b: the base of the source name, or "-" if not set
- %f: the source name, or "-" if not set
- %l: the line number of the diagnostic, derived from the character offset if set, or "-" otherwise
- %c: the column number of the diagnostic, derived from the character offset if set, or "-" otherwise
- %o: the character offset of the diagnostic if set, or "-" otherwise
- %p: the prefix for the diagnostic, derived from the diagnostic type
- %t: the prefix as it normally appears in standard diagnostics. In this case, no prefix is
shown if the type is ERROR and if a source name is set
- %m: the text or the diagnostic, including any appropriate arguments
|
DEFAULT_CLASS_FORMAT | final public static String DEFAULT_CLASS_FORMAT(Code) | | |
DEFAULT_NO_POS_FORMAT | final public static String DEFAULT_NO_POS_FORMAT(Code) | | |
DEFAULT_POS_FORMAT | final public static String DEFAULT_POS_FORMAT(Code) | | |
classFormat | protected String classFormat(Code) | | A format string to be used for diagnostics regarding classfiles
|
noPosFormat | protected String noPosFormat(Code) | | A format string to be used for diagnostics without a given position.
|
posFormat | protected String posFormat(Code) | | A format string to be used for diagnostics with a given position.
|
raw | protected boolean raw(Code) | | A value to indicate whether to output the i18n key and args, instead of
the derived l10n message.
|
DiagnosticFormatter | protected DiagnosticFormatter(Context context)(Code) | | Create a formatter based on the supplied options.
|
DiagnosticFormatter | public DiagnosticFormatter()(Code) | | |
|
|