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) |
protected boolean |
isShadowed(IEObjectDescription fromParent)
Returns
true if the given description input from the parent scope is
shadowed by local elements. |
protected boolean |
looksLikeLocalVariable() |
findAllFeaturesByName, getFeatureCall, getLocalElementsByEObject, getSession, getShadowingKey, processAsPropertyNames, processFeatureNames, tryGetAsPropertyName
getAllElements, getElements, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, toString
public LocalVariableScope(IScope parent, IFeatureScopeSession session, XAbstractFeatureCall featureCall)
protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
getAllLocalElements
in class AbstractScope
protected java.util.Collection<IEObjectDescription> getLocalElementsByName(QualifiedName name)
getLocalElementsByName
in class AbstractSessionBasedScope
protected boolean canBeLocalVariable()
protected boolean looksLikeLocalVariable()
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.