javax.tools
public interface Diagnostic<S>
Parameters: the type of the source object
Since: 1.6
| Nested Class Summary | |
|---|---|
| static class | Diagnostic.Kind
The kind of diagnostic information. |
| Field Summary | |
|---|---|
| static long | NOPOS
Indicates that this diagnostic object doesn't carry position information. |
| Method Summary | |
|---|---|
| String | getCode()
Return a diagnostic code. |
| long | getColumnNumber()
Returns the column number or NOPOS, indicating that this doesn't
carry position information. |
| long | getEndPosition() |
| Diagnostic.Kind | getKind()
Returns the kind of this diagnostic object.
|
| long | getLineNumber()
Returns the line number or NOPOS, indicating that this doesn't
carry position information. |
| String | getMessage(Locale locale)
Returns a localized message. |
| long | getPosition()
Returns the position in the source object. |
| S | getSource()
Returns the source of this diagnostic object.
|
| long | getStartPosition()
Returns the start position in the source object. |
null.
Returns: a diagnostic code or null
Returns: the column number
Returns: the kind of this diagnostic object
Returns: the line number
locale is null this uses the default locale.
Parameters: locale the locale, or null
Returns: a localized message
# NOPOS, indicating that this doesn't carry position
information.
Returns: the position in the source object
Returns: the source of this diagnostic object
Returns: the start position in the source object