public class BaseScopeView extends org.eclipse.xtext.scoping.impl.AbstractScope implements IScopeView
Modifier and Type | Field and Description |
---|---|
protected ElementCS |
child |
protected EnvironmentFactoryInternal |
environmentFactory |
protected boolean |
isQualified |
static IScopeView |
NULLSCOPEVIEW
The
NULLSCOPEVIEW to be returned by the most outer scope |
protected ElementCS |
target |
protected org.eclipse.emf.ecore.EReference |
targetReference |
Modifier | Constructor and Description |
---|---|
protected |
BaseScopeView(EnvironmentFactoryInternal environmentFactory,
ElementCS target,
ElementCS child,
org.eclipse.emf.ecore.EReference targetReference,
boolean isQualified) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> |
getAllElements() |
protected java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> |
getAllLocalElements() |
Attribution |
getAttribution()
Return Attribution instance that defines the lookup algorithm for the target node.
|
ElementCS |
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.
|
java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> |
getElements(org.eclipse.emf.ecore.EObject object) |
java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> |
getElements(org.eclipse.xtext.naming.QualifiedName name) |
IScopeView |
getParent()
Return the ScopeView that characterizes a lookup in the parent of the target node.
|
IScopeView |
getRoot()
Return the ScopeView that characterizes a lookup at the top level.
|
static BaseScopeView |
getScopeView(EnvironmentFactoryInternal environmentFactory,
ElementCS target,
org.eclipse.emf.ecore.EReference targetReference) |
org.eclipse.xtext.resource.IEObjectDescription |
getSingleElement(org.eclipse.emf.ecore.EObject object) |
org.eclipse.xtext.resource.IEObjectDescription |
getSingleElement(org.eclipse.xtext.naming.QualifiedName name) |
ElementCS |
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 IScopeView NULLSCOPEVIEW
NULLSCOPEVIEW
to be returned by the most outer scope@NonNull protected final EnvironmentFactoryInternal environmentFactory
@NonNull protected final ElementCS target
@Nullable protected final ElementCS child
@NonNull protected final org.eclipse.emf.ecore.EReference targetReference
protected final boolean isQualified
protected BaseScopeView(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull ElementCS target, @Nullable ElementCS child, @NonNull org.eclipse.emf.ecore.EReference targetReference, boolean isQualified)
@NonNull public static BaseScopeView getScopeView(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull ElementCS target, @NonNull org.eclipse.emf.ecore.EReference targetReference)
@NonNull public Attribution getAttribution()
ScopeView
getAttribution
in interface ScopeView
public java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllElements()
getAllElements
in interface org.eclipse.xtext.scoping.IScope
getAllElements
in class org.eclipse.xtext.scoping.impl.AbstractScope
protected final java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
getAllLocalElements
in class org.eclipse.xtext.scoping.impl.AbstractScope
@Nullable public ElementCS getChild()
ScopeView
public org.eclipse.emf.ecore.EStructuralFeature getContainmentFeature()
ScopeView
getContainmentFeature
in interface ScopeView
public java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.xtext.naming.QualifiedName name)
getElements
in interface org.eclipse.xtext.scoping.IScope
getElements
in class org.eclipse.xtext.scoping.impl.AbstractScope
public java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object)
getElements
in interface org.eclipse.xtext.scoping.IScope
getElements
in class org.eclipse.xtext.scoping.impl.AbstractScope
@NonNull public IScopeView getParent()
ScopeView
getParent
in interface ScopeView
getParent
in interface IScopeView
getParent
in class org.eclipse.xtext.scoping.impl.AbstractScope
@NonNull public IScopeView getRoot()
ScopeView
getRoot
in interface ScopeView
getRoot
in interface IScopeView
public org.eclipse.xtext.resource.IEObjectDescription getSingleElement(org.eclipse.emf.ecore.EObject object)
getSingleElement
in interface org.eclipse.xtext.scoping.IScope
getSingleElement
in class org.eclipse.xtext.scoping.impl.AbstractScope
@Nullable public org.eclipse.xtext.resource.IEObjectDescription getSingleElement(org.eclipse.xtext.naming.QualifiedName name)
getSingleElement
in interface org.eclipse.xtext.scoping.IScope
getSingleElement
in class org.eclipse.xtext.scoping.impl.AbstractScope
@NonNull public final ElementCS getTarget()
ScopeView
public final boolean isQualified()
ScopeView
isQualified
in interface ScopeView
public java.lang.String toString()
toString
in class org.eclipse.xtext.scoping.impl.AbstractScope