|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
S
- the type of the source objectpublic interface Diagnostic<S>
Encapsulates diagnostic information from a tool. This usually includes (but is not required) a position in a source file, line and column number information and a message.
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. |
Field Detail |
---|
static final long NOPOS
Method Detail |
---|
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
.
null
String getMessage(Locale locale)
locale
is null
this uses the default locale.
locale
- the locale, or null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |