Class LocationInResource
- java.lang.Object
-
- org.eclipse.xtext.generator.trace.internal.AbstractLocationInResource
-
- org.eclipse.xtext.generator.trace.internal.LocationInResource
-
- All Implemented Interfaces:
ILocationInResource
public class LocationInResource extends AbstractLocationInResource
-
-
Constructor Summary
Constructors Constructor Description LocationInResource(int offset, int length, int lineNumber, int endLineNumber, SourceRelativeURI srcRelativeResourceURI, AbstractTrace trace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetEndLineNumber()protected intgetLength()protected intgetLineNumber()protected intgetOffset()SourceRelativeURIgetSrcRelativeResourceURI()Returns the URI of this resource relative to the classpath if applicable.-
Methods inherited from class org.eclipse.xtext.generator.trace.internal.AbstractLocationInResource
getAbsoluteResourceURI, getContents, getLanguage, getProjectConfig, getTextRegion, getTrace, toString
-
-
-
-
Constructor Detail
-
LocationInResource
public LocationInResource(int offset, int length, int lineNumber, int endLineNumber, SourceRelativeURI srcRelativeResourceURI, AbstractTrace trace)
-
-
Method Detail
-
getSrcRelativeResourceURI
public SourceRelativeURI getSrcRelativeResourceURI()
Description copied from interface:ILocationInResourceReturns the URI of this resource relative to the classpath if applicable. Otherwise the URI relative to the project root.- Specified by:
getSrcRelativeResourceURIin interfaceILocationInResource- Specified by:
getSrcRelativeResourceURIin classAbstractLocationInResource
-
getOffset
protected int getOffset()
- Specified by:
getOffsetin classAbstractLocationInResource
-
getLength
protected int getLength()
- Specified by:
getLengthin classAbstractLocationInResource
-
getLineNumber
protected int getLineNumber()
- Specified by:
getLineNumberin classAbstractLocationInResource
-
getEndLineNumber
protected int getEndLineNumber()
- Specified by:
getEndLineNumberin classAbstractLocationInResource
-
-