Class XtendLocationInFileProvider

  • All Implemented Interfaces:
    org.eclipse.xtext.resource.ILocationInFileProvider, org.eclipse.xtext.resource.ILocationInFileProviderExtension

    public class XtendLocationInFileProvider
    extends org.eclipse.xtext.xbase.jvmmodel.JvmLocationInFileProvider
    Specialization of the JvmLocationInFileProvider that configures Xtend specific location nodes, e.g. the significant region of a constructor declaration is the keyword 'new'.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.ILocationInFileProviderExtension

        org.eclipse.xtext.resource.ILocationInFileProviderExtension.RegionDescription
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.xtext.util.ITextRegion getSignificantTextRegion​(org.eclipse.emf.ecore.EObject element)  
      protected boolean useKeyword​(org.eclipse.xtext.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, getTextRegion, getTextRegion
      • Methods inherited from class org.eclipse.xtext.xbase.resource.XbaseLocationInFileProvider

        getLocationNodes, getLocationOfContainmentReference, getLocationOfCrossReference
      • Methods inherited from class org.eclipse.xtext.resource.DefaultLocationInFileProvider

        createRegion, createRegion, doGetLocationOfFeature, doGetLocationOfFeature, doGetTextRegion, findNodeFor, getIdentifierFeature, getLocationOfAttribute, getLocationOfContainmentReference, getTextRegion, isHidden, isHidden, toZeroBasedRegion
      • 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​(org.eclipse.xtext.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 org.eclipse.xtext.xbase.resource.XbaseLocationInFileProvider
      • getSignificantTextRegion

        public org.eclipse.xtext.util.ITextRegion getSignificantTextRegion​(org.eclipse.emf.ecore.EObject element)
        Specified by:
        getSignificantTextRegion in interface org.eclipse.xtext.resource.ILocationInFileProvider
        Overrides:
        getSignificantTextRegion in class org.eclipse.xtext.xbase.jvmmodel.JvmLocationInFileProvider