org.eclipse.ocl.examples.xtext.base.scope
Class AbstractRootCSScopeAdapter<CS extends RootCS & MonikeredElementCS,P extends MonikeredElement>
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>
org.eclipse.ocl.examples.xtext.base.scoping.cs.MonikeredElementCSScopeAdapter<CS,P>
org.eclipse.ocl.examples.xtext.base.scope.AbstractRootCSScopeAdapter<CS,P>
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, TypeManagedAdapter, RootCSScopeAdapter, RootScopeAdapter, ScopeAdapter, ScopeCSAdapter
- Direct Known Subclasses:
- ContextCSScopeAdapter, RootPackageCSScopeAdapter, StandardDocumentScopeAdapter
public abstract class AbstractRootCSScopeAdapter<CS extends RootCS & MonikeredElementCS,P extends MonikeredElement>
- extends MonikeredElementCSScopeAdapter<CS,P>
- implements RootCSScopeAdapter
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, 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 |
AbstractRootCSScopeAdapter
public AbstractRootCSScopeAdapter(TypeManager typeManager,
CS csElement,
java.lang.Class<P> pivotClass)
computeLookup
public ScopeView computeLookup(EnvironmentView environmentView,
ScopeView scopeView)
- Description copied from interface:
ScopeAdapter
- Add the local lookup contributions to a view of an Environment.
The EnvironmentView contains the lookup matching criteria such as a specific name and
accumulates candidate results.
The input ScopeView identifies the CST node and the containment of the CST child from which
the lookup is made allowing derived implementations to present the alternative environments
specified as the Inherited Attributes in the OCL Specification.
The returned ScopeView identifies an outer scope in which the lookup may be continued if the
local candidate results are not suitable.
- Specified by:
computeLookup
in interface ScopeAdapter
- Overrides:
computeLookup
in class AbstractScopeAdapter<CS extends RootCS & MonikeredElementCS>
- Parameters:
environmentView
- the EnvironmentView to computescopeView
- the access selectivity to be applied by the lookup
- Returns:
- an outer ScopeView in which to continue the lookup, or null if none
getAlias
public java.lang.String getAlias(PackageCS csPackage)
- Specified by:
getAlias
in interface RootCSScopeAdapter
getRootScopeAdapter
public AbstractRootCSScopeAdapter<?,?> getRootScopeAdapter()
- Specified by:
getRootScopeAdapter
in interface ScopeAdapter
- Specified by:
getRootScopeAdapter
in interface ScopeCSAdapter
- Overrides:
getRootScopeAdapter
in class ElementCSScopeAdapter<CS extends RootCS & MonikeredElementCS>