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 record | JCDiagnostic.
A diagnostic argument that is a type, which will be printed with type annotations. |
| public static enum | |
| public abstract static class | JCDiagnostic.
A diagnostic key object encapsulates basic properties of a diagnostic, such as the resource key, the arguments and the kind associated with the diagnostic object. |
| public static interface | JCDiagnostic.
A DiagnosticPosition provides information about the positions in a file that gave rise to a diagnostic. |
| public static enum | JCDiagnostic.
A DiagnosticType defines the type of the diagnostic. |
| public static class | JCDiagnostic.
Class representing error diagnostic keys. |
| public static class | JCDiagnostic.
A factory for creating diagnostic objects. |
| public static class | JCDiagnostic.
Class representing fragment diagnostic keys. |
| public static class | JCDiagnostic.
Class representing lint warning diagnostic keys. |
| public static class | |
| public static class | JCDiagnostic.
Class representing note diagnostic keys. |
| public static class | JCDiagnostic.
A DiagnosticPosition that simply identifies a position, but no related tree node, as the location for a diagnostic. |
| pack-priv class | JCDiagnostic.
This class is used to defer the line/column position fetch logic after diagnostic construction. |
| public static class | JCDiagnostic.
Class representing warning diagnostic keys. |
| Modifier and Type | Field and Description |
|---|---|
| private DiagnosticFormatter | |
| private final JCDiagnostic. | |
| private final Set | |
| private static DiagnosticFormatter | fragmentFormatter
Deprecated
|
| private final JCDiagnostic. | |
| private final UnaryOperator | |
| private final DiagnosticSource | |
| private JCDiagnostic. | sourcePosition
source line position (set lazily) |
| Access | Constructor and Description |
|---|---|
| protected | JCDiagnostic(DiagnosticFormatter<JCDiagnostic>
the formatter to use for the diagnostic formatter, JCDiagnostic.the diagnostic key diagnosticInfo,the name of the source file, or null if none. source, JCDiagnostic.the character offset within the source file, if given. posCreate a diagnostic object. |
| protected | JCDiagnostic(DiagnosticFormatter<JCDiagnostic>
the formatter to use for the diagnostic formatter, JCDiagnostic.the diagnostic key diagnosticInfo,the name of the source file, or null if none. source, JCDiagnostic.the character offset within the source file, if given. pos,the rewriter function used if this diagnostic needs to be rewritten rewriter)Create a diagnostic object. |
| Modifier and Type | Method and Description |
|---|---|
| public static JCDiagnostic | |
| public Object[] | Returns: the arguments to be included in the text of the diagnosticGet the arguments to be included in the text of the diagnostic. |
| public String | getCode()
Implements javax. Returns a diagnostic code indicating the type of diagnostic. |
| public long | Returns: the column number within the line of source referred to by this diagnosticImplements javax. Get the column number within the line of source referred to by this diagnostic. |
| public JCDiagnostic. | |
| public DiagnosticSource | Returns: the source referred to with this diagnostic, or null if noneGet the source referred to by this diagnostic. |
| public long | getEndPosition()
Implements javax. Returns the character offset from the beginning of the file associated with this diagnostic that indicates the end of the problem. |
| public static DiagnosticFormatter | |
| protected int | |
| protected int | |
| protected int | |
| public Diagnostic. | getKind()
Implements javax. Returns the kind of this diagnostic, for example, error or warning. |
| public long | Returns: the line number within the source referred to by this diagnosticImplements javax. Get the line number within the source referred to by this diagnostic. |
| public Lint. | |
| public String | getMessage(Locale locale)
Implements javax. Returns a localized message for the given locale. |
| public long | getPosition()
Implements javax. Returns a character offset from the beginning of the source object associated with this diagnostic that indicates the location of the problem. |
| public String | Returns: the prefix string associated with this type of diagnosticGet the prefix string associated with this type of diagnostic. |
| public String | Returns: the prefix string associated with a particular type of diagnosticGet the prefix string associated with a particular type of diagnostic. |
| public JavaFileObject | Returns: the name of the source referred to with this diagnostic, or null if noneImplements javax. Get the name of the source file referred to by this diagnostic. |
| public long | getStartPosition()
Implements javax. Returns the character offset from the beginning of the file associated with this diagnostic that indicates the start of the problem. |
| public List | |
| public JCDiagnostic. | |
| public boolean | |
| pack-priv boolean | |
| public boolean | |
| public boolean | Returns: true if this diagnostic is required to be shown.Check whether or not this diagnostic is required to be shown. |
| public boolean | |
| pack-priv JCDiagnostic | |
| public void | |
| public String |