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:
- TransformationDiagnostic, XtextLinkingDiagnostic, XtextSyntaxDiagnostic
public abstract class AbstractDiagnostic
- extends java.lang.Object
- implements Diagnostic
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.resource.Resource.Diagnostic |
getMessage |
AbstractDiagnostic
public AbstractDiagnostic()
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 interface Diagnostic
- 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 interface Diagnostic
- Returns:
- the offset of this diagnostic.
getColumn
public int getColumn()
- Specified by:
getColumn
in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
getLine
public int getLine()
- Specified by:
getLine
in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic
getUriToProblem
public org.eclipse.emf.common.util.URI getUriToProblem()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object