org.eclipse.ocl.examples.xtext.essentialocl.scoping
Class TupleLiteralExpCSScopeAdapter

java.lang.Object
  extended by org.eclipse.ocl.examples.xtext.base.scoping.pivot.AbstractScopeAdapter<CS>
      extended by org.eclipse.ocl.examples.xtext.base.scoping.cs.ElementCSScopeAdapter<CS>
          extended by org.eclipse.ocl.examples.xtext.base.scoping.cs.ModelElementCSScopeAdapter<CS,P>
              extended by org.eclipse.ocl.examples.xtext.base.scoping.cs.MonikeredElementCSScopeAdapter<CS,P>
                  extended by org.eclipse.ocl.examples.xtext.base.scoping.cs.BaseCSScopeAdapter<CS,P>
                      extended by org.eclipse.ocl.examples.xtext.essentialocl.scoping.EssentialOCLCSScopeAdapter<CS,P>
                          extended by org.eclipse.ocl.examples.xtext.essentialocl.scoping.ExpCSScopeAdapter<TupleLiteralExpCS,TupleLiteralExp>
                              extended by org.eclipse.ocl.examples.xtext.essentialocl.scoping.TupleLiteralExpCSScopeAdapter
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, TypeManagedAdapter, ScopeAdapter, ScopeCSAdapter

public class TupleLiteralExpCSScopeAdapter
extends ExpCSScopeAdapter<TupleLiteralExpCS,TupleLiteralExp>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.xtext.base.scope.ScopeAdapter
ScopeAdapter.Switch
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.xtext.base.scoping.cs.ModelElementCSScopeAdapter
csClass, pivotClass
 
Fields inherited from class org.eclipse.ocl.examples.xtext.base.scoping.cs.ElementCSScopeAdapter
root, typeManager
 
Fields inherited from class org.eclipse.ocl.examples.xtext.base.scoping.pivot.AbstractScopeAdapter
parent, target
 
Constructor Summary
TupleLiteralExpCSScopeAdapter(TypeManager typeManager, TupleLiteralExpCS csElement)
           
 
Method Summary
 ScopeView computeLookup(EnvironmentView environmentView, ScopeView scopeView)
          Add the local lookup contributions to a view of an Environment.
 
Methods inherited from class org.eclipse.ocl.examples.xtext.essentialocl.scoping.ExpCSScopeAdapter
getParentSourceScope, getSourceScope
 
Methods inherited from class org.eclipse.ocl.examples.xtext.essentialocl.scoping.EssentialOCLCSScopeAdapter
getLibraryType
 
Methods inherited from class org.eclipse.ocl.examples.xtext.base.scoping.cs.BaseCSScopeAdapter
commonConformantType, conformsTo, getConformsTo
 
Methods inherited from class org.eclipse.ocl.examples.xtext.base.scoping.cs.MonikeredElementCSScopeAdapter
getMoniker, toString
 
Methods inherited from class org.eclipse.ocl.examples.xtext.base.scoping.cs.ModelElementCSScopeAdapter
getNamespaceScope, getNextNamespaceScope, getPivot
 
Methods inherited from class org.eclipse.ocl.examples.xtext.base.scoping.cs.ElementCSScopeAdapter
getRootScopeAdapter, getTypeManager, isAdapterFor
 
Methods inherited from class org.eclipse.ocl.examples.xtext.base.scoping.pivot.AbstractScopeAdapter
computeLookup, dispose, getDocumentScopeAdapter, getDocumentScopeAdapter, getInnerScopeView, getOuterScopeView, getParent, getScopeAdapter, getScopeCSAdapter, 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.ocl.examples.xtext.base.scope.ScopeAdapter
computeLookup, getInnerScopeView, getOuterScopeView, getParent, getTarget
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.utilities.TypeManagedAdapter
dispose
 
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
 

Constructor Detail

TupleLiteralExpCSScopeAdapter

public TupleLiteralExpCSScopeAdapter(TypeManager typeManager,
                                     TupleLiteralExpCS csElement)
Method Detail

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<TupleLiteralExpCS>
Parameters:
environmentView - the EnvironmentView to compute
scopeView - the access selectivity to be applied by the lookup
Returns:
an outer ScopeView in which to continue the lookup, or null if none