Package org.eclipse.xtext.xtext
Class XtextScopeProvider
- java.lang.Object
-
- org.eclipse.xtext.scoping.impl.AbstractScopeProvider
-
- org.eclipse.xtext.xtext.XtextScopeProvider
-
- All Implemented Interfaces:
IScopeProvider
public class XtextScopeProvider extends AbstractScopeProvider
-
-
Constructor Summary
Constructors Constructor Description XtextScopeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IScopecreateClassifierScope(java.util.List<org.eclipse.emf.ecore.EPackage> packages)protected IScopecreateEnumLiteralsScope(org.eclipse.emf.ecore.EEnum eEnum)protected IScopecreateEPackageScope(Grammar grammar)protected IScopecreateEPackageScope(Grammar grammar, IScope parent)protected IScopecreateReferencedPackagesScope(Grammar g)protected IScopecreateScope(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.ecore.EClass type, IScope parent)protected IScopecreateScope(Grammar grammar, org.eclipse.emf.ecore.EClass type, IScope current)protected IScopedoCreateScope(Grammar grammar, org.eclipse.emf.ecore.EClass type, IScope parent)protected java.util.List<Grammar>getAllGrammars(Grammar grammar)IScopegetScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)Returns a scope for the given context.
-
-
-
Method Detail
-
getScope
public IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
Description copied from interface:IScopeProviderReturns a scope for the given context. The scope provides access to the compatible visible EObjects for a given reference.- 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 givenEReference.reference- the reference for which to get the scope.- Returns:
IScoperepresenting the innermostIScopefor the passed context and reference. Note for implementors: The result may not benull. ReturnIScope.NULLSCOPEinstead.
-
createEnumLiteralsScope
protected IScope createEnumLiteralsScope(org.eclipse.emf.ecore.EEnum eEnum)
-
createClassifierScope
protected IScope createClassifierScope(java.util.List<org.eclipse.emf.ecore.EPackage> packages)
-
createScope
protected IScope createScope(org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.ecore.EClass type, IScope parent)
-
createScope
protected IScope createScope(Grammar grammar, org.eclipse.emf.ecore.EClass type, IScope current)
-
doCreateScope
protected IScope doCreateScope(Grammar grammar, org.eclipse.emf.ecore.EClass type, IScope parent)
-
-