public class BaseScopeView extends org.eclipse.xtext.scoping.impl.AbstractScope implements IScopeView
| Modifier and Type | Field and Description |
|---|---|
protected ElementCS |
child |
protected boolean |
isQualified |
protected MetaModelManager |
metaModelManager |
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(MetaModelManager metaModelManager,
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) |
MetaModelManager |
getMetaModelManager() |
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(MetaModelManager metaModelManager,
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 MetaModelManager metaModelManager
@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
MetaModelManager metaModelManager,
@NonNull
ElementCS target,
@Nullable
ElementCS child,
@NonNull
org.eclipse.emf.ecore.EReference targetReference,
boolean isQualified)
@NonNull public static BaseScopeView getScopeView(@NonNull MetaModelManager metaModelManager, @NonNull ElementCS target, @NonNull org.eclipse.emf.ecore.EReference targetReference)
@NonNull public Attribution getAttribution()
ScopeViewgetAttribution in interface ScopeViewpublic java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllElements()
getAllElements in interface org.eclipse.xtext.scoping.IScopegetAllElements in class org.eclipse.xtext.scoping.impl.AbstractScopeprotected final java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
getAllLocalElements in class org.eclipse.xtext.scoping.impl.AbstractScope@Nullable public ElementCS getChild()
ScopeViewpublic org.eclipse.emf.ecore.EStructuralFeature getContainmentFeature()
ScopeViewgetContainmentFeature in interface ScopeViewpublic java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.xtext.naming.QualifiedName name)
getElements in interface org.eclipse.xtext.scoping.IScopegetElements in class org.eclipse.xtext.scoping.impl.AbstractScopepublic java.lang.Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object)
getElements in interface org.eclipse.xtext.scoping.IScopegetElements in class org.eclipse.xtext.scoping.impl.AbstractScopepublic MetaModelManager getMetaModelManager()
@NonNull public IScopeView getParent()
ScopeViewgetParent in interface ScopeViewgetParent in interface IScopeViewgetParent in class org.eclipse.xtext.scoping.impl.AbstractScope@NonNull public IScopeView getRoot()
ScopeViewgetRoot in interface ScopeViewgetRoot in interface IScopeViewpublic org.eclipse.xtext.resource.IEObjectDescription getSingleElement(org.eclipse.emf.ecore.EObject object)
getSingleElement in interface org.eclipse.xtext.scoping.IScopegetSingleElement 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.IScopegetSingleElement in class org.eclipse.xtext.scoping.impl.AbstractScope@NonNull public final ElementCS getTarget()
ScopeViewpublic final boolean isQualified()
ScopeViewisQualified in interface ScopeViewpublic java.lang.String toString()
toString in class org.eclipse.xtext.scoping.impl.AbstractScope