|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.examples.pivot.scoping.PivotScopeView
public class PivotScopeView
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.
| Field Summary | |
|---|---|
protected Element |
child
|
protected boolean |
isQualified
|
protected MetaModelManager |
metaModelManager
|
static ScopeView |
NULLSCOPEVIEW
The NULLSCOPEVIEW to be returned by the most outer scope |
protected Element |
target
|
| Constructor Summary | |
|---|---|
protected |
PivotScopeView(MetaModelManager metaModelManager,
Element target,
Element child,
boolean isQualified)
|
| Method Summary | |
|---|---|
ScopeView |
computeLookup(EnvironmentView environmentView,
org.eclipse.emf.ecore.EObject aTarget)
|
Attribution |
getAttribution()
Return Attribution instance that defines the lookup algorithm for the target node. |
Element |
getChild()
Return the immediate child node for which a lookup is requested. |
org.eclipse.emf.ecore.EStructuralFeature |
getContainmentFeature()
Return the containment feature of the child within the target. |
MetaModelManager |
getMetaModelManager()
|
ScopeView |
getParent()
Return the ScopeView that characterizes a lookup in the parent of the target node. |
ScopeView |
getRoot()
Return the ScopeView that characterizes a lookup at the top level. |
Element |
getTarget()
Return the target node at which this ScopeView characterizes a lookup. |
boolean |
isQualified()
Return true if the lookup is within a qualified name. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@NonNull public static final ScopeView NULLSCOPEVIEW
NULLSCOPEVIEW to be returned by the most outer scope
@NonNull protected final MetaModelManager metaModelManager
@NonNull protected final Element target
@Nullable protected final Element child
protected final boolean isQualified
| Constructor Detail |
|---|
protected PivotScopeView(@NonNull
MetaModelManager metaModelManager,
@NonNull
Element target,
@Nullable
Element child,
boolean isQualified)
| Method Detail |
|---|
@Nullable
public ScopeView computeLookup(@NonNull
EnvironmentView environmentView,
@NonNull
org.eclipse.emf.ecore.EObject aTarget)
@NonNull public Attribution getAttribution()
ScopeView
getAttribution in interface ScopeView@Nullable public Element getChild()
ScopeView
getChild in interface ScopeView@Nullable public org.eclipse.emf.ecore.EStructuralFeature getContainmentFeature()
ScopeView
getContainmentFeature in interface ScopeView@NonNull public MetaModelManager getMetaModelManager()
@NonNull public ScopeView getParent()
ScopeView
getParent in interface ScopeView@NonNull public ScopeView getRoot()
ScopeView
getRoot in interface ScopeView@NonNull public final Element getTarget()
ScopeView
getTarget in interface ScopeViewpublic boolean isQualified()
ScopeView
isQualified in interface ScopeViewpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||