Package org.eclipse.xtext.resource
Interface ILocationInFileProviderExtension
-
- All Known Implementing Classes:
DefaultLocationInFileProvider,XtextLocationInFileProvider
public interface ILocationInFileProviderExtensionExtends the functionality of theILocationInFileProviderto allow clients to query for a region with more fine grained criteria.- Since:
- 2.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classILocationInFileProviderExtension.RegionDescriptionDescribes the kind of region that is queried.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.xtext.util.ITextRegiongetTextRegion(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList, ILocationInFileProviderExtension.RegionDescription query)Queries for parts of the text region that parts of the given object originate from.org.eclipse.xtext.util.ITextRegiongetTextRegion(org.eclipse.emf.ecore.EObject object, ILocationInFileProviderExtension.RegionDescription query)Queries for parts of the text region that the given object is originates from.
-
-
-
Method Detail
-
getTextRegion
org.eclipse.xtext.util.ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject object, ILocationInFileProviderExtension.RegionDescription query)Queries for parts of the text region that the given object is originates from.- Parameters:
object- the instance whose region should be returned.query- the hint about the requested range.- Returns:
- the text region or
nullif the object does not have an associated text region.
-
getTextRegion
org.eclipse.xtext.util.ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList, ILocationInFileProviderExtension.RegionDescription query)Queries for parts of the text region that parts of the given object originate from.- Parameters:
object- the instance whose region should be returned.feature- the feature that was set when the requested range was consumed by the parser.indexInList- the index in the list of feature values.-1if all values should be considered.query- the hint about the requested range.- Returns:
- the text region or
nullif the object does not have an associated text region.
-
-