org.eclipse.xtext.xtend2.scoping
Class Xtend2GlobalScopeProvider
java.lang.Object
org.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider
org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider
org.eclipse.xtext.xtend2.scoping.Xtend2GlobalScopeProvider
- All Implemented Interfaces:
- IGlobalScopeProvider
public class Xtend2GlobalScopeProvider
- extends DefaultGlobalScopeProvider
Lets inferred JVM models from index shadow the types scopes.
- Author:
- Jan Koehnlein - Initial contribution and API
Method Summary |
protected org.eclipse.emf.ecore.EClass |
getEReferenceType(org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.emf.ecore.EReference reference)
|
IScope |
getScope(org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.emf.ecore.EReference reference,
com.google.common.base.Predicate<IEObjectDescription> filter)
Returns a global scope for the given context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Xtend2GlobalScopeProvider
public Xtend2GlobalScopeProvider()
getScope
public IScope getScope(org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.emf.ecore.EReference reference,
com.google.common.base.Predicate<IEObjectDescription> filter)
- Description copied from interface:
IGlobalScopeProvider
- Returns a global scope for the given context. The scope provides access to the
EObjectDescription
visible from the given Resource
according to the definition of the global scope hierarchy (which is usually defined by
IContainer.Manager
).
- Specified by:
getScope
in interface IGlobalScopeProvider
- Overrides:
getScope
in class AbstractGlobalScopeProvider
- Parameters:
resource
- the resource from which the global scope is looked at.
- 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.
getEReferenceType
protected org.eclipse.emf.ecore.EClass getEReferenceType(org.eclipse.emf.ecore.resource.Resource resource,
org.eclipse.emf.ecore.EReference reference)