org.eclipse.xtext.xbase.linking
Class XbaseLinkingScopeProvider

java.lang.Object
  extended by org.eclipse.xtext.xbase.linking.XbaseLinkingScopeProvider
All Implemented Interfaces:
IScopeProvider

public class XbaseLinkingScopeProvider
extends java.lang.Object
implements IScopeProvider

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
XbaseLinkingScopeProvider()
           
 
Method Summary
protected  FeatureCallChecker getFeatureCallChecker(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
           
 IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
          Returns a scope for the given context.
protected  boolean isFeatureCallScope(org.eclipse.emf.ecore.EReference reference)
           
protected  IScope wrapFeatureCallScope(IScope scope, org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XbaseLinkingScopeProvider

public XbaseLinkingScopeProvider()
Method Detail

getScope

public IScope getScope(org.eclipse.emf.ecore.EObject context,
                       org.eclipse.emf.ecore.EReference reference)
Description copied from interface: IScopeProvider
Returns a scope for the given context. The scope provides access to the compatible visible EObjects for a given reference.

Specified by:
getScope in interface IScopeProvider
Parameters:
context - the element from which an element shall be referenced. It doesn't need to be the element containing the reference, it is just used to find the most inner scope for given EReference.
reference - the reference for which to get the scope.
Returns:
IScope representing the inner most IScope for the passed context and reference. Note for implementors: The result may not be null. Return IScope.NULLSCOPE instead.

wrapFeatureCallScope

protected IScope wrapFeatureCallScope(IScope scope,
                                      org.eclipse.emf.ecore.EObject context,
                                      org.eclipse.emf.ecore.EReference reference)

isFeatureCallScope

protected boolean isFeatureCallScope(org.eclipse.emf.ecore.EReference reference)

getFeatureCallChecker

protected FeatureCallChecker getFeatureCallChecker(org.eclipse.emf.ecore.EObject context,
                                                   org.eclipse.emf.ecore.EReference reference)