org.eclipse.xtext.resource
Class DefaultLocationInFileProvider
java.lang.Object
org.eclipse.xtext.resource.DefaultLocationInFileProvider
- All Implemented Interfaces:
- ILocationInFileProvider
- Direct Known Subclasses:
- JvmLocationInFileProvider, XtextLocationInFileProvider
public class DefaultLocationInFileProvider
- extends java.lang.Object
- implements ILocationInFileProvider
- Author:
- Peter Friese - Implementation, Sven Efftinge - Initial contribution and API
Method Summary |
protected ITextRegion |
createRegion(java.util.List<INode> nodes)
|
protected ITextRegion |
doGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList,
boolean isSignificant)
|
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 |
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)
|
protected boolean |
isHidden(INode node)
|
protected boolean |
useKeyword(Keyword keyword,
org.eclipse.emf.ecore.EObject context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLocationInFileProvider
public DefaultLocationInFileProvider()
getSignificantTextRegion
public ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject obj)
- Specified by:
getSignificantTextRegion
in interface ILocationInFileProvider
getFullTextRegion
public ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject obj)
- Specified by:
getFullTextRegion
in interface ILocationInFileProvider
getTextRegion
protected ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject obj,
boolean isSignificant)
getSignificantTextRegion
public ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList)
- Specified by:
getSignificantTextRegion
in interface ILocationInFileProvider
getFullTextRegion
public ITextRegion getFullTextRegion(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList)
- Specified by:
getFullTextRegion
in interface ILocationInFileProvider
getLocationOfContainmentReference
protected ITextRegion getLocationOfContainmentReference(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference feature,
int indexInList,
boolean isSignificant)
getLocationOfCrossReference
protected ITextRegion getLocationOfCrossReference(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference,
int indexInList,
boolean isSignificant)
getLocationOfAttribute
protected ITextRegion getLocationOfAttribute(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EAttribute attribute,
int indexInList,
boolean isSignificant)
doGetLocationOfFeature
protected ITextRegion doGetLocationOfFeature(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
int indexInList,
boolean isSignificant)
getLocationNodes
protected java.util.List<INode> getLocationNodes(org.eclipse.emf.ecore.EObject obj)
useKeyword
protected boolean useKeyword(Keyword keyword,
org.eclipse.emf.ecore.EObject context)
getIdentifierFeature
protected org.eclipse.emf.ecore.EStructuralFeature getIdentifierFeature(org.eclipse.emf.ecore.EObject obj)
createRegion
protected ITextRegion createRegion(java.util.List<INode> nodes)
isHidden
protected boolean isHidden(INode node)