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.
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 |
getLength()
Returns the length of this diagnostic.
|
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