Package org.eclipse.xtext.resource
Class XtextSyntaxDiagnosticWithRange
- java.lang.Object
-
- org.eclipse.xtext.diagnostics.AbstractDiagnostic
-
- org.eclipse.xtext.resource.XtextSyntaxDiagnostic
-
- org.eclipse.xtext.resource.XtextSyntaxDiagnosticWithRange
-
- All Implemented Interfaces:
org.eclipse.emf.ecore.resource.Resource.Diagnostic,Diagnostic
public class XtextSyntaxDiagnosticWithRange extends XtextSyntaxDiagnostic
- Since:
- 2.7
-
-
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 XtextSyntaxDiagnosticWithRange(INode errorNode, int offset, int length, java.lang.String[] userData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getData()intgetLength()Returns the length of this diagnostic.intgetLine()intgetOffset()Returns the offset of this diagnostic.-
Methods inherited from class org.eclipse.xtext.resource.XtextSyntaxDiagnostic
getCode, getMessage, getNode
-
Methods inherited from class org.eclipse.xtext.diagnostics.AbstractDiagnostic
getColumn, getColumnEnd, getLineEnd, getLocation, getUriToProblem, toString
-
-
-
-
Constructor Detail
-
XtextSyntaxDiagnosticWithRange
public XtextSyntaxDiagnosticWithRange(INode errorNode, int offset, int length, java.lang.String[] userData)
-
-
Method Detail
-
getLength
public int getLength()
Description copied from interface:DiagnosticReturns the length of this diagnostic.- Specified by:
getLengthin interfaceDiagnostic- Overrides:
getLengthin classAbstractDiagnostic- Returns:
- the length of this diagnostic.
-
getOffset
public int getOffset()
Description copied from interface:DiagnosticReturns the offset of this diagnostic.- Specified by:
getOffsetin interfaceDiagnostic- Overrides:
getOffsetin classAbstractDiagnostic- Returns:
- the offset of this diagnostic.
-
getLine
public int getLine()
- Specified by:
getLinein interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic- Overrides:
getLinein classAbstractDiagnostic
-
getData
public java.lang.String[] getData()
- Overrides:
getDatain classXtextSyntaxDiagnostic
-
-