public class DefaultLocationInFileProvider extends java.lang.Object implements ILocationInFileProvider, ILocationInFileProviderExtension
ILocationInFileProviderExtension.RegionDescription| Constructor and Description |
|---|
DefaultLocationInFileProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.xtext.util.ITextRegion |
createRegion(java.util.List<INode> nodes) |
protected org.eclipse.xtext.util.ITextRegion |
createRegion(java.util.List<INode> nodes,
ILocationInFileProviderExtension.RegionDescription query) |
protected org.eclipse.xtext.util.ITextRegion |
doGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList,
boolean isSignificant) |
protected org.eclipse.xtext.util.ITextRegion |
doGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList,
ILocationInFileProviderExtension.RegionDescription query) |
protected org.eclipse.xtext.util.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.
|
org.eclipse.xtext.util.ITextRegion |
getFullTextRegion(org.eclipse.emf.ecore.EObject obj) |
org.eclipse.xtext.util.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 org.eclipse.xtext.util.ITextRegion |
getLocationOfAttribute(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EAttribute attribute,
int indexInList,
boolean isSignificant) |
protected org.eclipse.xtext.util.ITextRegion |
getLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference feature,
int indexInList,
boolean isSignificant) |
protected org.eclipse.xtext.util.ITextRegion |
getLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference feature,
int indexInList,
ILocationInFileProviderExtension.RegionDescription query) |
protected org.eclipse.xtext.util.ITextRegion |
getLocationOfCrossReference(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference,
int indexInList,
boolean isSignificant) |
org.eclipse.xtext.util.ITextRegion |
getSignificantTextRegion(org.eclipse.emf.ecore.EObject obj) |
org.eclipse.xtext.util.ITextRegion |
getSignificantTextRegion(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList) |
protected org.eclipse.xtext.util.ITextRegion |
getTextRegion(org.eclipse.emf.ecore.EObject obj,
boolean isSignificant) |
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.
|
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.
|
protected boolean |
isHidden(INode node) |
protected boolean |
isHidden(INode node,
ILocationInFileProviderExtension.RegionDescription query) |
protected org.eclipse.xtext.util.TextRegionWithLineInformation |
toZeroBasedRegion(org.eclipse.xtext.util.ITextRegionWithLineInformation region) |
protected boolean |
useKeyword(Keyword keyword,
org.eclipse.emf.ecore.EObject context) |
public org.eclipse.xtext.util.ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject obj)
getSignificantTextRegion in interface ILocationInFileProviderILocationInFileProviderExtension.RegionDescription.SIGNIFICANTpublic org.eclipse.xtext.util.ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject obj)
getFullTextRegion in interface ILocationInFileProviderILocationInFileProviderExtension.RegionDescription.FULLprotected org.eclipse.xtext.util.ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject obj,
boolean isSignificant)
public org.eclipse.xtext.util.ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject object,
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 org.eclipse.xtext.util.ITextRegion doGetTextRegion(org.eclipse.emf.ecore.EObject obj,
ILocationInFileProviderExtension.RegionDescription query)
public org.eclipse.xtext.util.ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList)
getSignificantTextRegion in interface ILocationInFileProviderILocationInFileProviderExtension.RegionDescription.SIGNIFICANTpublic org.eclipse.xtext.util.ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList)
getFullTextRegion in interface ILocationInFileProviderILocationInFileProviderExtension.RegionDescription.FULLpublic org.eclipse.xtext.util.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 org.eclipse.xtext.util.ITextRegion getLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference feature,
int indexInList,
boolean isSignificant)
protected org.eclipse.xtext.util.ITextRegion getLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference feature,
int indexInList,
ILocationInFileProviderExtension.RegionDescription query)
protected org.eclipse.xtext.util.ITextRegion getLocationOfCrossReference(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference,
int indexInList,
boolean isSignificant)
protected org.eclipse.xtext.util.ITextRegion getLocationOfAttribute(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EAttribute attribute,
int indexInList,
boolean isSignificant)
protected org.eclipse.xtext.util.ITextRegion doGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList,
boolean isSignificant)
protected org.eclipse.xtext.util.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 org.eclipse.xtext.util.ITextRegion createRegion(java.util.List<INode> nodes)
protected org.eclipse.xtext.util.ITextRegion createRegion(java.util.List<INode> nodes, ILocationInFileProviderExtension.RegionDescription query)
protected org.eclipse.xtext.util.TextRegionWithLineInformation toZeroBasedRegion(org.eclipse.xtext.util.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.