public class SerializerScopeProvider extends XbaseBatchScopeProvider implements IFeatureNames
IT, SELF, SUPER, THIS
Constructor and Description |
---|
SerializerScopeProvider() |
Modifier and Type | Method and Description |
---|---|
IScope |
createConstructorCallSerializationScope(org.eclipse.emf.ecore.EObject context) |
IScope |
createFeatureCallSerializationScope(org.eclipse.emf.ecore.EObject context) |
protected IScope |
doGetTypeScope(XAbstractFeatureCall call,
JvmType type) |
protected IScope |
doGetTypeScope(XFeatureCall call,
JvmType type) |
protected IScope |
doGetTypeScope(XMemberFeatureCall call,
JvmType type) |
protected IScope |
getExecutableScope(XAbstractFeatureCall call,
JvmIdentifiableElement feature) |
IScope |
getScope(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference)
Returns a scope for the given context.
|
protected IScope |
getThisOrSuperScope(XAbstractFeatureCall call,
JvmConstructor constructor) |
protected IScope |
getThisOrSuperScope(XAbstractFeatureCall call,
JvmType thisOrSuper) |
protected IScope |
getTypeScope(XAbstractFeatureCall call,
JvmType type) |
delegateGetScope, getDelegate, getFeatureScopes, isBatchScopeable, isConstructorCallScope, isFeatureCallScope, isTypeScope, newSession, setDelegate
public IScope getScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference)
IScopeProvider
getScope
in interface IScopeProvider
getScope
in class XbaseBatchScopeProvider
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.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.public IScope createConstructorCallSerializationScope(org.eclipse.emf.ecore.EObject context)
public IScope createFeatureCallSerializationScope(org.eclipse.emf.ecore.EObject context)
protected IScope getExecutableScope(XAbstractFeatureCall call, JvmIdentifiableElement feature)
protected IScope getThisOrSuperScope(XAbstractFeatureCall call, JvmConstructor constructor)
protected IScope getTypeScope(XAbstractFeatureCall call, JvmType type)
protected IScope doGetTypeScope(XAbstractFeatureCall call, JvmType type)
protected IScope doGetTypeScope(XFeatureCall call, JvmType type)
protected IScope doGetTypeScope(XMemberFeatureCall call, JvmType type)
protected IScope getThisOrSuperScope(XAbstractFeatureCall call, JvmType thisOrSuper)