public class DefaultLocationInFileProvider extends java.lang.Object implements ILocationInFileProvider, ILocationInFileProviderExtension
ILocationInFileProviderExtension.RegionDescription| Constructor and Description | 
|---|
DefaultLocationInFileProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected ITextRegion | 
createRegion(java.util.List<INode> nodes)  | 
protected ITextRegion | 
createRegion(java.util.List<INode> nodes,
            ILocationInFileProviderExtension.RegionDescription query)  | 
protected ITextRegion | 
doGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner,
                      org.eclipse.emf.ecore.EStructuralFeature feature,
                      int indexInList,
                      boolean isSignificant)  | 
protected ITextRegion | 
doGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner,
                      org.eclipse.emf.ecore.EStructuralFeature feature,
                      int indexInList,
                      ILocationInFileProviderExtension.RegionDescription query)  | 
protected ITextRegion | 
doGetTextRegion(org.eclipse.emf.ecore.EObject obj,
               ILocationInFileProviderExtension.RegionDescription query)  | 
protected ICompositeNode | 
findNodeFor(org.eclipse.emf.ecore.EObject semanticObject)
Returns the smallest node that covers all assigned values of the given object. 
 | 
ITextRegion | 
getFullTextRegion(org.eclipse.emf.ecore.EObject obj)  | 
ITextRegion | 
getFullTextRegion(org.eclipse.emf.ecore.EObject owner,
                 org.eclipse.emf.ecore.EStructuralFeature feature,
                 int indexInList)  | 
protected org.eclipse.emf.ecore.EStructuralFeature | 
getIdentifierFeature(org.eclipse.emf.ecore.EObject obj)  | 
protected java.util.List<INode> | 
getLocationNodes(org.eclipse.emf.ecore.EObject obj)  | 
protected ITextRegion | 
getLocationOfAttribute(org.eclipse.emf.ecore.EObject owner,
                      org.eclipse.emf.ecore.EAttribute attribute,
                      int indexInList,
                      boolean isSignificant)  | 
protected ITextRegion | 
getLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner,
                                 org.eclipse.emf.ecore.EReference feature,
                                 int indexInList,
                                 boolean isSignificant)  | 
protected ITextRegion | 
getLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner,
                                 org.eclipse.emf.ecore.EReference feature,
                                 int indexInList,
                                 ILocationInFileProviderExtension.RegionDescription query)  | 
protected ITextRegion | 
getLocationOfCrossReference(org.eclipse.emf.ecore.EObject owner,
                           org.eclipse.emf.ecore.EReference reference,
                           int indexInList,
                           boolean isSignificant)  | 
ITextRegion | 
getSignificantTextRegion(org.eclipse.emf.ecore.EObject obj)  | 
ITextRegion | 
getSignificantTextRegion(org.eclipse.emf.ecore.EObject owner,
                        org.eclipse.emf.ecore.EStructuralFeature feature,
                        int indexInList)  | 
protected ITextRegion | 
getTextRegion(org.eclipse.emf.ecore.EObject obj,
             boolean isSignificant)  | 
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. 
 | 
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. 
 | 
protected boolean | 
isHidden(INode node)  | 
protected boolean | 
isHidden(INode node,
        ILocationInFileProviderExtension.RegionDescription query)  | 
protected TextRegionWithLineInformation | 
toZeroBasedRegion(ITextRegionWithLineInformation region)  | 
protected boolean | 
useKeyword(Keyword keyword,
          org.eclipse.emf.ecore.EObject context)  | 
public ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject obj)
getSignificantTextRegion in interface ILocationInFileProviderpublic ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject obj)
getFullTextRegion in interface ILocationInFileProviderprotected ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject obj, boolean isSignificant)
@Nullable public ITextRegion getTextRegion(@NonNull org.eclipse.emf.ecore.EObject object, @NonNull ILocationInFileProviderExtension.RegionDescription query)
ILocationInFileProviderExtensiongetTextRegion in interface ILocationInFileProviderExtensionobject - the instance whose region should be returned.query - the hint about the requested range.null if the object does not have an associated text region.protected ITextRegion doGetTextRegion(org.eclipse.emf.ecore.EObject obj, @NonNull ILocationInFileProviderExtension.RegionDescription query)
public ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)
getSignificantTextRegion in interface ILocationInFileProviderpublic ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList)
getFullTextRegion in interface ILocationInFileProvider@NonNullByDefault @Nullable public ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList, ILocationInFileProviderExtension.RegionDescription query)
ILocationInFileProviderExtensiongetTextRegion in interface ILocationInFileProviderExtensionobject - 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. -1 if all values should be considered.query - the hint about the requested range.null if the object does not have an associated text region.protected ITextRegion getLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference feature, int indexInList, boolean isSignificant)
protected ITextRegion getLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference feature, int indexInList, ILocationInFileProviderExtension.RegionDescription query)
protected ITextRegion getLocationOfCrossReference(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, int indexInList, boolean isSignificant)
protected ITextRegion getLocationOfAttribute(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EAttribute attribute, int indexInList, boolean isSignificant)
protected ITextRegion doGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList, boolean isSignificant)
protected ITextRegion doGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, int indexInList, ILocationInFileProviderExtension.RegionDescription query)
protected java.util.List<INode> getLocationNodes(org.eclipse.emf.ecore.EObject obj)
protected boolean useKeyword(Keyword keyword, org.eclipse.emf.ecore.EObject context)
protected org.eclipse.emf.ecore.EStructuralFeature getIdentifierFeature(org.eclipse.emf.ecore.EObject obj)
protected ITextRegion createRegion(java.util.List<INode> nodes)
protected ITextRegion createRegion(java.util.List<INode> nodes, ILocationInFileProviderExtension.RegionDescription query)
protected TextRegionWithLineInformation toZeroBasedRegion(ITextRegionWithLineInformation region)
protected boolean isHidden(INode node, ILocationInFileProviderExtension.RegionDescription query)
protected boolean isHidden(INode node)
protected ICompositeNode findNodeFor(org.eclipse.emf.ecore.EObject semanticObject)
actions and unassigned rule calls.