org.eclipse.xtext.builder.trace
Class OffsetBasedLocationInResource
java.lang.Object
org.eclipse.xtext.builder.trace.AbstractLocationInResource
org.eclipse.xtext.builder.trace.OffsetBasedLocationInResource
- All Implemented Interfaces:
- ILocationInResource
public class OffsetBasedLocationInResource
- extends AbstractLocationInResource
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OffsetBasedLocationInResource
public OffsetBasedLocationInResource(int offset,
int length,
int lineNumber,
int endLineNumber,
org.eclipse.emf.common.util.URI resourceURI,
java.lang.String projectName,
AbstractTrace trace)
getResourceURI
public org.eclipse.emf.common.util.URI getResourceURI()
- Specified by:
getResourceURI
in interface ILocationInResource
- Specified by:
getResourceURI
in class AbstractLocationInResource
- Returns:
- the EMF resource URI for this location. May be
null
if the
resource is not an EMF resource.
getProjectName
protected java.lang.String getProjectName()
- Specified by:
getProjectName
in class AbstractLocationInResource
getOffset
protected int getOffset()
- Specified by:
getOffset
in class AbstractLocationInResource
getLength
protected int getLength()
- Specified by:
getLength
in class AbstractLocationInResource
getLineNumber
protected int getLineNumber()
- Specified by:
getLineNumber
in class AbstractLocationInResource
getEndLineNumber
protected int getEndLineNumber()
- Specified by:
getEndLineNumber
in class AbstractLocationInResource