org.eclipse.xtext.builder.trace
Class OffsetBasedLocationInResource

java.lang.Object
  extended by org.eclipse.xtext.builder.trace.AbstractLocationInResource
      extended by org.eclipse.xtext.builder.trace.OffsetBasedLocationInResource
All Implemented Interfaces:
ILocationInResource

public class OffsetBasedLocationInResource
extends AbstractLocationInResource

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
OffsetBasedLocationInResource(int offset, int length, int lineNumber, int endLineNumber, org.eclipse.emf.common.util.URI resourceURI, java.lang.String projectName, AbstractTrace trace)
           
 
Method Summary
protected  int getEndLineNumber()
           
protected  int getLength()
           
protected  int getLineNumber()
           
protected  int getOffset()
           
protected  java.lang.String getProjectName()
           
 org.eclipse.emf.common.util.URI getResourceURI()
           
 
Methods inherited from class org.eclipse.xtext.builder.trace.AbstractLocationInResource
getEObjectURI, getLanguage, getProject, getStorage, getTextRegion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OffsetBasedLocationInResource

public OffsetBasedLocationInResource(int offset,
                                     int length,
                                     int lineNumber,
                                     int endLineNumber,
                                     org.eclipse.emf.common.util.URI resourceURI,
                                     java.lang.String projectName,
                                     AbstractTrace trace)
Method Detail

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