org.eclipse.xtext.generator.trace
Interface ILocationInResource
- All Known Implementing Classes:
- AbstractLocationInResource, LocationInResource, OffsetBasedLocationInResource
public interface ILocationInResource
Describes the location in a given file or storage.
- Since:
- 2.3
- Author:
- Sebastian Zarnekow - Initial contribution and API
- This interface is not intended to be implemented by clients.
- This interface is not intended to be implemented by clients.
- This class is not intended to be subclassed by clients.
- This interface is not intended to be extended by clients.
getLanguage
@Nullable
LanguageInfo getLanguage()
- Returns:
- the language that this resource belongs to. May be
null
.
getResourceURI
@Nullable
org.eclipse.emf.common.util.URI getResourceURI()
- Returns:
- the EMF resource URI for this location. May be
null
if the
resource is not an EMF resource.
getEObjectURI
@Nullable
org.eclipse.emf.common.util.URI getEObjectURI()
- 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
org.eclipse.core.resources.IStorage getStorage()
- Returns:
- the storage handle for this location. Never
null
.
getProject
@NonNull
org.eclipse.core.resources.IProject getProject()
- Returns:
- the project for this location. Never
null
.
getTextRegion
@Nullable
ITextRegionWithLineInformation getTextRegion()
- Returns:
- the range in the resource. May be
null
.