org.eclipse.xtend.core.resource
Class XtendLocationInFileProvider

java.lang.Object
  extended by org.eclipse.xtext.resource.DefaultLocationInFileProvider
      extended by org.eclipse.xtext.xbase.resource.XbaseLocationInFileProvider
          extended by org.eclipse.xtext.xbase.jvmmodel.JvmLocationInFileProvider
              extended by org.eclipse.xtend.core.resource.XtendLocationInFileProvider
All Implemented Interfaces:
ILocationInFileProvider, ILocationInFileProviderExtension

public class XtendLocationInFileProvider
extends JvmLocationInFileProvider

Specialization of the JvmLocationInFileProvider that configures Xtend specific location nodes, e.g. the significant region of a constructor declaration is the keyword 'new'.

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.ILocationInFileProviderExtension
ILocationInFileProviderExtension.RegionDescription
 
Constructor Summary
XtendLocationInFileProvider()
           
 
Method Summary
protected  boolean useKeyword(Keyword keyword, org.eclipse.emf.ecore.EObject context)
          Considers the keyword 'new' of a constructor declaration to be the significant part.
 
Methods inherited from class org.eclipse.xtext.xbase.jvmmodel.JvmLocationInFileProvider
convertToSource, getFullTextRegion, getFullTextRegion, getSignificantTextRegion, getSignificantTextRegion, getTextRegion, getTextRegion
 
Methods inherited from class org.eclipse.xtext.xbase.resource.XbaseLocationInFileProvider
getLocationNodes, getLocationOfCrossReference
 
Methods inherited from class org.eclipse.xtext.resource.DefaultLocationInFileProvider
createRegion, createRegion, doGetLocationOfFeature, doGetLocationOfFeature, doGetTextRegion, findNodeFor, getIdentifierFeature, getLocationOfAttribute, getLocationOfContainmentReference, getLocationOfContainmentReference, getTextRegion, isHidden, isHidden
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XtendLocationInFileProvider

public XtendLocationInFileProvider()
Method Detail

useKeyword

protected boolean useKeyword(Keyword keyword,
                             org.eclipse.emf.ecore.EObject context)
Considers the keyword 'new' of a constructor declaration to be the significant part.

Overrides:
useKeyword in class XbaseLocationInFileProvider