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.StringgetCode()intgetColumn()intgetColumnEnd()Returns the end column location of the issue within the source.abstract java.lang.String[]getData()intgetLength()Returns the length of this diagnostic.intgetLine()intgetLineEnd()Returns the end line location of the issue within the source.java.lang.StringgetLocation()protected abstract INodegetNode()intgetOffset()Returns the offset of this diagnostic.org.eclipse.emf.common.util.URIgetUriToProblem()java.lang.StringtoString()
-
-
-
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:DiagnosticReturns the length of this diagnostic.- Specified by:
getLengthin interfaceDiagnostic- Returns:
- the length of this diagnostic.
-
getOffset
public int getOffset()
Description copied from interface:DiagnosticReturns the offset of this diagnostic.- Specified by:
getOffsetin interfaceDiagnostic- Returns:
- the offset of this diagnostic.
-
getColumn
public int getColumn()
- Specified by:
getColumnin interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getLine
public int getLine()
- Specified by:
getLinein interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getLineEnd
public int getLineEnd()
Description copied from interface:DiagnosticReturns the end line location of the issue within the source. Line1is the first line of a document.- Specified by:
getLineEndin interfaceDiagnostic- Returns:
- the end line location of the issue.
-
getColumnEnd
public int getColumnEnd()
Description copied from interface:DiagnosticReturns 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.- Specified by:
getColumnEndin interfaceDiagnostic- Returns:
- the end column location of the issue.
-
getLocation
public java.lang.String getLocation()
- Specified by:
getLocationin interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getUriToProblem
public org.eclipse.emf.common.util.URI getUriToProblem()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-