org.eclipse.ocl.examples.pivot.scoping
Class PivotScopeView
java.lang.Object
org.eclipse.ocl.examples.pivot.scoping.PivotScopeView
- All Implemented Interfaces:
- ScopeView
public class PivotScopeView
- extends java.lang.Object
- implements ScopeView
ScopeViews support access to some or all of the elements in a scope.
Accesses are filtered on the fly since a cache of results does not remain valid
for long enough to merit it, with incremental reparsing regularly trashing
the CST.
Constructor Summary |
PivotScopeView(MetaModelManager metaModelManager,
Element target,
Attribution attribution,
org.eclipse.emf.ecore.EObject child,
org.eclipse.emf.ecore.EStructuralFeature containmentFeature,
org.eclipse.emf.ecore.EReference targetReference)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NULLSCOPEVIEW
public static final ScopeView NULLSCOPEVIEW
- The
NULLSCOPEVIEW
to be returned by the most outer scope
metaModelManager
protected final MetaModelManager metaModelManager
attribution
protected final Attribution attribution
target
protected final Element target
child
protected final org.eclipse.emf.ecore.EObject child
containmentFeature
protected final org.eclipse.emf.ecore.EStructuralFeature containmentFeature
targetReference
protected final org.eclipse.emf.ecore.EReference targetReference
PivotScopeView
public PivotScopeView(MetaModelManager metaModelManager,
Element target,
Attribution attribution,
org.eclipse.emf.ecore.EObject child,
org.eclipse.emf.ecore.EStructuralFeature containmentFeature,
org.eclipse.emf.ecore.EReference targetReference)
getAttribution
public Attribution getAttribution()
- Specified by:
getAttribution
in interface ScopeView
getChild
public org.eclipse.emf.ecore.EObject getChild()
- Specified by:
getChild
in interface ScopeView
getContainmentFeature
public org.eclipse.emf.ecore.EStructuralFeature getContainmentFeature()
- Specified by:
getContainmentFeature
in interface ScopeView
getMetaModelManager
public MetaModelManager getMetaModelManager()
getParent
public ScopeView getParent()
- Specified by:
getParent
in interface ScopeView
getTarget
public final Element getTarget()
- Specified by:
getTarget
in interface ScopeView
getTargetReference
public org.eclipse.emf.ecore.EReference getTargetReference()
- Specified by:
getTargetReference
in interface ScopeView
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object