Package org.eclipse.xtend.core.resource
Class XtendLocationInFileProvider
- java.lang.Object
-
- org.eclipse.xtext.resource.DefaultLocationInFileProvider
-
- org.eclipse.xtext.xbase.resource.XbaseLocationInFileProvider
-
- org.eclipse.xtext.xbase.jvmmodel.JvmLocationInFileProvider
-
- org.eclipse.xtend.core.resource.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 theJvmLocationInFileProvider
that configures Xtend specific location nodes, e.g. the significant region of a constructor declaration is the keyword 'new'.
-
-
Constructor Summary
Constructors Constructor Description XtendLocationInFileProvider()
-
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
-
-
-
-
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 classorg.eclipse.xtext.xbase.resource.XbaseLocationInFileProvider
-
getSignificantTextRegion
public org.eclipse.xtext.util.ITextRegion getSignificantTextRegion(org.eclipse.emf.ecore.EObject element)
- Specified by:
getSignificantTextRegion
in interfaceorg.eclipse.xtext.resource.ILocationInFileProvider
- Overrides:
getSignificantTextRegion
in classorg.eclipse.xtext.xbase.jvmmodel.JvmLocationInFileProvider
-
-