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 int
getEndLineNumber()
protected int
getLength()
protected int
getLineNumber()
protected int
getOffset()
SourceRelativeURI
getSrcRelativeResourceURI()
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:ILocationInResource
Returns the URI of this resource relative to the classpath if applicable. Otherwise the URI relative to the project root.- Specified by:
getSrcRelativeResourceURI
in interfaceILocationInResource
- Specified by:
getSrcRelativeResourceURI
in classAbstractLocationInResource
-
getOffset
protected int getOffset()
- Specified by:
getOffset
in classAbstractLocationInResource
-
getLength
protected int getLength()
- Specified by:
getLength
in classAbstractLocationInResource
-
getLineNumber
protected int getLineNumber()
- Specified by:
getLineNumber
in classAbstractLocationInResource
-
getEndLineNumber
protected int getEndLineNumber()
- Specified by:
getEndLineNumber
in classAbstractLocationInResource
-
-