org.eclipse.ocl.examples.xtext.base.scoping.cs
Class ModelElementCSScopeAdapter<CS extends ModelElementCS,P extends Element>
java.lang.Object
org.eclipse.ocl.examples.xtext.base.scoping.pivot.AbstractScopeAdapter<CS>
org.eclipse.ocl.examples.xtext.base.scoping.cs.ElementCSScopeAdapter<CS>
org.eclipse.ocl.examples.xtext.base.scoping.cs.ModelElementCSScopeAdapter<CS,P>
- Type Parameters:
T
-
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, TypeManagedAdapter, ScopeAdapter, ScopeCSAdapter
- Direct Known Subclasses:
- ClassifierContextScopeAdapter, MonikeredElementCSScopeAdapter, OperationContextScopeAdapter, PropertyContextScopeAdapter, TemplateBindingCSScopeAdapter, TemplateParameterSubstitutionCSScopeAdapter, TypedTypeRefCSScopeAdapter, TypeNameExpCSScopeAdapter
public abstract class ModelElementCSScopeAdapter<CS extends ModelElementCS,P extends Element>
- extends ElementCSScopeAdapter<CS>
A ModelElementCSScopeAdapter provides the basic behaviour for a family of derived
classes that provide additional scope/environment behaviour for corresponding
CS elements and pivot element counterparts.
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Methods inherited from class org.eclipse.ocl.examples.xtext.base.scoping.pivot.AbstractScopeAdapter |
computeLookup, computeLookup, dispose, getDocumentScopeAdapter, getDocumentScopeAdapter, getInnerScopeView, getOuterScopeView, getParent, getScopeAdapter, getScopeCSAdapter, getSourceScope, getTarget, isAdapterForType, notifyChanged, setTarget, unsetTarget |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.notify.Adapter.Internal |
unsetTarget |
Methods inherited from interface org.eclipse.emf.common.notify.Adapter |
isAdapterForType, notifyChanged, setTarget |
csClass
protected final java.lang.Class<CS extends ModelElementCS> csClass
pivotClass
protected final java.lang.Class<P extends Element> pivotClass
ModelElementCSScopeAdapter
protected ModelElementCSScopeAdapter(TypeManager typeManager,
CS csElement,
java.lang.Class<P> pivotClass)
- Creates an instance.
- Parameters:
parent
-
ModelElementCSScopeAdapter
protected ModelElementCSScopeAdapter(TypeManager typeManager,
org.eclipse.emf.ecore.EObject csParent,
CS csElement,
java.lang.Class<P> pivotClass)
getPivot
public P getPivot()
getNamespaceScope
protected ScopeView getNamespaceScope(EnvironmentView environmentView,
ScopeView scopeView,
java.util.List<Namespace> namespaces)
- Return the scope in which to resolve an element following a list of namespaces.
getNextNamespaceScope
protected ScopeView getNextNamespaceScope(EnvironmentView environmentView,
ScopeView scopeView,
org.eclipse.emf.common.util.EList<Namespace> namespaces)
- Return the scope in which to resolve a member of a list of namespaces.
This code assumes that the calling context attempts to resolve namespaces
from the outer most, so that the first proxy denotes the next namespace to resolve.