public class LocalVariableScope extends AbstractSessionBasedScope
AbstractSessionBasedScope.NameAcceptor
AbstractScope.ParentIterable
Constructor and Description |
---|
LocalVariableScope(IScope parent,
IFeatureScopeSession session,
XAbstractFeatureCall featureCall) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canBeLocalVariable() |
protected java.lang.Iterable<IEObjectDescription> |
getAllLocalElements() |
java.lang.Iterable<IEObjectDescription> |
getElements(QualifiedName name)
Find all descriptions that match the given name.
|
protected java.util.Collection<IEObjectDescription> |
getLocalElementsByName(QualifiedName name) |
IEObjectDescription |
getSingleElement(QualifiedName name)
Find the first description that matches the given name.
|
protected boolean |
isShadowed(IEObjectDescription fromParent)
Returns
true if the given description input from the parent scope is
shadowed by local elements. |
protected boolean |
looksLikeLocalVariable(XAbstractFeatureCall featureCall) |
findAllFeaturesByName, getFeatureCall, getLocalElementsByEObject, getSession, getShadowingKey, processAsPropertyNames, processFeatureNames, toProperty, tryGetAsPropertyName
getAllElements, getElements, getParent, getParentElements, getSingleElement, getSingleLocalElementByName, isIgnoreCase, toString
public LocalVariableScope(IScope parent, IFeatureScopeSession session, XAbstractFeatureCall featureCall)
protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
getAllLocalElements
in class AbstractSessionBasedScope
public IEObjectDescription getSingleElement(QualifiedName name)
IScope
getSingleElement
in interface IScope
getSingleElement
in class AbstractScope
name
- the name of the to-be-found element. May not be null
.name
. May be null
.protected java.util.Collection<IEObjectDescription> getLocalElementsByName(QualifiedName name)
getLocalElementsByName
in class AbstractSessionBasedScope
protected boolean canBeLocalVariable()
protected boolean looksLikeLocalVariable(XAbstractFeatureCall featureCall)
public java.lang.Iterable<IEObjectDescription> getElements(QualifiedName name)
IScope
getElements
in interface IScope
getElements
in class AbstractSessionBasedScope
name
- the name of the to-be-found elements. May not be null
.name
. Never null
.protected boolean isShadowed(IEObjectDescription fromParent)
AbstractScope
true
if the given description input
from the parent scope is
shadowed by local elements.isShadowed
in class AbstractSessionBasedScope
true
if the given description input
from the parent scope is
shadowed by local elements.