Package org.eclipse.xtext.diagnostics
Interface Diagnostic
-
- All Superinterfaces:
org.eclipse.emf.ecore.resource.Resource.Diagnostic
- All Known Implementing Classes:
AbstractDiagnostic,EObjectDiagnosticImpl,ExceptionDiagnostic,TransformationDiagnostic,XtextLinkingDiagnostic,XtextSyntaxDiagnostic,XtextSyntaxDiagnosticWithRange
public interface Diagnostic extends org.eclipse.emf.ecore.resource.Resource.DiagnosticA specializedResource.Diagnosticthat knows about the region in the document, e.g. thegetOffset()andgetLength()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 fromAbstractDiagnosticinstead of implementing this interface directly.- See Also:
XtextLinkingDiagnostic,XtextSyntaxDiagnostic,ExceptionDiagnostic- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLINKING_DIAGNOSTICstatic java.lang.StringSYNTAX_DIAGNOSITCDeprecated.useSYNTAX_DIAGNOSTICinstead.static java.lang.StringSYNTAX_DIAGNOSTICstatic java.lang.StringSYNTAX_DIAGNOSTIC_WITH_RANGE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetColumnEnd()Returns the end column location of the issue within the source.intgetLength()Returns the length of this diagnostic.intgetLineEnd()Returns the end line location of the issue within the source.intgetOffset()Returns the offset of this diagnostic.
-
-
-
Field Detail
-
SYNTAX_DIAGNOSTIC
static final java.lang.String SYNTAX_DIAGNOSTIC
- Since:
- 2.1
- See Also:
- Constant Field Values
-
SYNTAX_DIAGNOSTIC_WITH_RANGE
static final java.lang.String SYNTAX_DIAGNOSTIC_WITH_RANGE
- Since:
- 2.7
- See Also:
- Constant Field Values
-
SYNTAX_DIAGNOSITC
@Deprecated static final java.lang.String SYNTAX_DIAGNOSITC
Deprecated.useSYNTAX_DIAGNOSTICinstead.- See Also:
- Constant Field Values
-
LINKING_DIAGNOSTIC
static final java.lang.String LINKING_DIAGNOSTIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOffset
int getOffset()
Returns the offset of this diagnostic.- Returns:
- the offset of this diagnostic.
-
getLength
int getLength()
Returns the length of this diagnostic.- Returns:
- the length of this diagnostic.
-
getLineEnd
int getLineEnd()
Returns the end line location of the issue within the source. Line1is the first line of a document.- Returns:
- the end line location of the issue.
- Since:
- 2.21
-
getColumnEnd
int getColumnEnd()
Returns the end column location of the issue within the source. The region does not include the end column character itself. Column1is the first column of a line.- Returns:
- the end column location of the issue.
- Since:
- 2.21
-
-