Class XbaseBatchScopeProvider
- java.lang.Object
-
- org.eclipse.xtext.xbase.scoping.batch.XbaseBatchScopeProvider
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.impl.IDelegatingScopeProvider,org.eclipse.xtext.scoping.IScopeProvider,IBatchScopeProvider
- Direct Known Subclasses:
AbstractXbaseWithAnnotationsScopeProvider,XbaseWithAnnotationsBatchScopeProvider
public class XbaseBatchScopeProvider extends java.lang.Object implements IBatchScopeProvider, org.eclipse.xtext.scoping.impl.IDelegatingScopeProvider
-
-
Constructor Summary
Constructors Constructor Description XbaseBatchScopeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.xtext.scoping.IScopedelegateGetScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)org.eclipse.xtext.scoping.IScopeProvidergetDelegate()protected FeatureScopesgetFeatureScopes()org.eclipse.xtext.scoping.IScopegetScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)booleanisBatchScopeable(org.eclipse.emf.ecore.EReference reference)Returnstrueif a proxy at the given reference should be resolved by means of a batch run.booleanisConstructorCallScope(org.eclipse.emf.ecore.EReference reference)booleanisFeatureCallScope(org.eclipse.emf.ecore.EReference reference)protected booleanisTypeScope(org.eclipse.emf.ecore.EReference reference)IFeatureScopeSessionnewSession(org.eclipse.emf.ecore.resource.Resource context)Returns a preconfigured feature scope session that is aware of implicitly imported types such asCollectionLiterals.voidsetDelegate(org.eclipse.xtext.scoping.IScopeProvider delegate)voidsetWrapper(org.eclipse.xtext.scoping.impl.IScopeWrapper wrapper)
-
-
-
Method Detail
-
delegateGetScope
protected org.eclipse.xtext.scoping.IScope delegateGetScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
-
setDelegate
public void setDelegate(org.eclipse.xtext.scoping.IScopeProvider delegate)
-
getDelegate
public org.eclipse.xtext.scoping.IScopeProvider getDelegate()
- Specified by:
getDelegatein interfaceorg.eclipse.xtext.scoping.impl.IDelegatingScopeProvider
-
setWrapper
public void setWrapper(org.eclipse.xtext.scoping.impl.IScopeWrapper wrapper)
- Specified by:
setWrapperin interfaceorg.eclipse.xtext.scoping.impl.IDelegatingScopeProvider
-
getScope
public org.eclipse.xtext.scoping.IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)- Specified by:
getScopein interfaceorg.eclipse.xtext.scoping.IScopeProvider
-
newSession
public IFeatureScopeSession newSession(org.eclipse.emf.ecore.resource.Resource context)
Description copied from interface:IBatchScopeProviderReturns a preconfigured feature scope session that is aware of implicitly imported types such asCollectionLiterals.- Specified by:
newSessionin interfaceIBatchScopeProvider- Parameters:
context- the resource that contains the to-be-linked instances.- Returns:
- a new feature scope session. Never
null.
-
isTypeScope
protected boolean isTypeScope(org.eclipse.emf.ecore.EReference reference)
-
isConstructorCallScope
public boolean isConstructorCallScope(org.eclipse.emf.ecore.EReference reference)
- Specified by:
isConstructorCallScopein interfaceIBatchScopeProvider
-
isFeatureCallScope
public boolean isFeatureCallScope(org.eclipse.emf.ecore.EReference reference)
- Specified by:
isFeatureCallScopein interfaceIBatchScopeProvider
-
getFeatureScopes
protected FeatureScopes getFeatureScopes()
-
isBatchScopeable
public boolean isBatchScopeable(org.eclipse.emf.ecore.EReference reference)
Description copied from interface:IBatchScopeProviderReturnstrueif a proxy at the given reference should be resolved by means of a batch run.- Specified by:
isBatchScopeablein interfaceIBatchScopeProvider
-
-