public class PivotScopeView extends java.lang.Object implements ScopeView
Modifier and Type | Field and Description |
---|---|
protected Element |
child |
protected EnvironmentFactoryInternal |
environmentFactory |
protected boolean |
isQualified |
static ScopeView |
NULLSCOPEVIEW
The
NULLSCOPEVIEW to be returned by the most outer scope |
protected Element |
target |
Modifier | Constructor and Description |
---|---|
protected |
PivotScopeView(EnvironmentFactoryInternal environmentFactory,
Element target,
Element child,
boolean isQualified) |
Modifier and Type | Method and Description |
---|---|
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.
|
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() |
@NonNull public static final ScopeView NULLSCOPEVIEW
NULLSCOPEVIEW
to be returned by the most outer scope@NonNull protected final EnvironmentFactoryInternal environmentFactory
@NonNull protected final Element target
@Nullable protected final Element child
protected final boolean isQualified
protected PivotScopeView(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull Element target, @Nullable Element child, boolean isQualified)
@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
@Nullable public org.eclipse.emf.ecore.EStructuralFeature getContainmentFeature()
ScopeView
getContainmentFeature
in interface ScopeView
@NonNull public ScopeView getParent()
ScopeView
@NonNull public ScopeView getRoot()
ScopeView
@NonNull public final Element getTarget()
ScopeView
public boolean isQualified()
ScopeView
isQualified
in interface ScopeView
public java.lang.String toString()
toString
in class java.lang.Object