public interface Diagnostic
extends org.eclipse.emf.ecore.resource.Resource.Diagnostic
Resource.Diagnostic that knows
about the region in the document, e.g. the getOffset() and getLength()
of the issue source. A region starts in a start line before a start column and ends in an end
line before an end column.
Implementors should inherit from AbstractDiagnostic instead of implementing this
interface directly.XtextLinkingDiagnostic,
XtextSyntaxDiagnostic,
ExceptionDiagnostic| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LINKING_DIAGNOSTIC |
static java.lang.String |
SYNTAX_DIAGNOSITC
Deprecated.
use
SYNTAX_DIAGNOSTIC instead. |
static java.lang.String |
SYNTAX_DIAGNOSTIC |
static java.lang.String |
SYNTAX_DIAGNOSTIC_WITH_RANGE |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnEnd()
Returns the end column location of the issue within the source.
|
int |
getLength()
Returns the length of this diagnostic.
|
int |
getLineEnd()
Returns the end line location of the issue within the source.
|
int |
getOffset()
Returns the offset of this diagnostic.
|
static final java.lang.String SYNTAX_DIAGNOSTIC
static final java.lang.String SYNTAX_DIAGNOSTIC_WITH_RANGE
@Deprecated static final java.lang.String SYNTAX_DIAGNOSITC
SYNTAX_DIAGNOSTIC instead.static final java.lang.String LINKING_DIAGNOSTIC
int getOffset()
int getLength()
int getLineEnd()
1 is the first line of a document.int getColumnEnd()
1 is the first column of a line.