Package org.eclipse.xtext.diagnostics
Class AbstractDiagnostic
- java.lang.Object
-
- org.eclipse.xtext.diagnostics.AbstractDiagnostic
-
- All Implemented Interfaces:
org.eclipse.emf.ecore.resource.Resource.Diagnostic
,Diagnostic
- Direct Known Subclasses:
EObjectDiagnosticImpl
,TransformationDiagnostic
,XtextLinkingDiagnostic
,XtextSyntaxDiagnostic
public abstract class AbstractDiagnostic extends java.lang.Object implements Diagnostic
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.diagnostics.Diagnostic
LINKING_DIAGNOSTIC, SYNTAX_DIAGNOSITC, SYNTAX_DIAGNOSTIC, SYNTAX_DIAGNOSTIC_WITH_RANGE
-
-
Constructor Summary
Constructors Constructor Description AbstractDiagnostic()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
getCode()
int
getColumn()
int
getColumnEnd()
Returns the end column location of the issue within the source.abstract java.lang.String[]
getData()
int
getLength()
Returns the length of this diagnostic.int
getLine()
int
getLineEnd()
Returns the end line location of the issue within the source.java.lang.String
getLocation()
protected abstract INode
getNode()
int
getOffset()
Returns the offset of this diagnostic.org.eclipse.emf.common.util.URI
getUriToProblem()
java.lang.String
toString()
-
-
-
Method Detail
-
getNode
protected abstract INode getNode()
-
getCode
public abstract java.lang.String getCode()
-
getData
public abstract java.lang.String[] getData()
-
getLength
public int getLength()
Description copied from interface:Diagnostic
Returns the length of this diagnostic.- Specified by:
getLength
in interfaceDiagnostic
- Returns:
- the length of this diagnostic.
-
getOffset
public int getOffset()
Description copied from interface:Diagnostic
Returns the offset of this diagnostic.- Specified by:
getOffset
in interfaceDiagnostic
- Returns:
- the offset of this diagnostic.
-
getColumn
public int getColumn()
- Specified by:
getColumn
in interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getLine
public int getLine()
- Specified by:
getLine
in interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getLineEnd
public int getLineEnd()
Description copied from interface:Diagnostic
Returns the end line location of the issue within the source. Line1
is the first line of a document.- Specified by:
getLineEnd
in interfaceDiagnostic
- Returns:
- the end line location of the issue.
-
getColumnEnd
public int getColumnEnd()
Description copied from interface:Diagnostic
Returns the end column location of the issue within the source. The region does not include the end column character itself. Column1
is the first column of a line.- Specified by:
getColumnEnd
in interfaceDiagnostic
- Returns:
- the end column location of the issue.
-
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getUriToProblem
public org.eclipse.emf.common.util.URI getUriToProblem()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-