org.eclipse.xtext.builder.trace
Class LocationInResource
java.lang.Object
org.eclipse.xtext.builder.trace.LocationInResource
- All Implemented Interfaces:
- ILocationInResource
public class LocationInResource
- extends java.lang.Object
- implements ILocationInResource
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationInResource
public LocationInResource()
init
protected void init(org.eclipse.emf.common.util.URI resourceURI,
org.eclipse.core.resources.IStorage resource,
org.eclipse.core.resources.IProject project)
getLanguage
public LanguageInfo getLanguage()
- Specified by:
getLanguage
in interface ILocationInResource
- Returns:
- the language that this resource belongs to. May be
null
.
getResourceURI
public org.eclipse.emf.common.util.URI getResourceURI()
- Specified by:
getResourceURI
in interface ILocationInResource
- Returns:
- the EMF resource URI for this location. May be
null
if the
resource is not an EMF resource.
getEObjectURI
public org.eclipse.emf.common.util.URI getEObjectURI()
- Specified by:
getEObjectURI
in interface ILocationInResource
- Returns:
- the more specific
object
URI
for this location. May be null
if the resource itself is empty or if this
resource is not an EMF resource.
getStorage
@NonNull
public org.eclipse.core.resources.IStorage getStorage()
- Specified by:
getStorage
in interface ILocationInResource
- Returns:
- the storage handle for this location. Never
null
.
getProject
@NonNull
public org.eclipse.core.resources.IProject getProject()
- Specified by:
getProject
in interface ILocationInResource
- Returns:
- the project for this location. Never
null
.
getTextRegion
public ITextRegionWithLineInformation getTextRegion()
- Specified by:
getTextRegion
in interface ILocationInResource
- Returns:
- the range in the resource. May be
null
.