S - the type of the source objectpublic interface Diagnostic<S>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Diagnostic.Kind
The kind of diagnostic information.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
NOPOS
Indicates that this diagnostic object doesn't carry position information.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
static final long NOPOS
Diagnostic.Kind getKind()
S getSource()
long getPosition()
NOPOS, indicating that this doesn't carry position
information.long getStartPosition()
NOPOS, indicating that this doesn't carry position
information.long getEndPosition()
long getLineNumber()
NOPOS, indicating that this doesn't
carry position information. This is a 1-based value indicating the line
in the source object.long getColumnNumber()
NOPOS, indicating that this doesn't
carry position information. This is a 1-based value indicating the column
in the source object.String getCode()
null.nullString getMessage(Locale locale)
locale is null this uses the default locale.locale - the locale, or null