public class LocalVariableScope extends AbstractSessionBasedScope
AbstractSessionBasedScope.NameAcceptorAbstractScope.ParentIterable| Constructor and Description |
|---|
LocalVariableScope(IScope parent,
IFeatureScopeSession session,
XAbstractFeatureCall featureCall) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canBeLocalVariable() |
protected java.util.List<IEObjectDescription> |
getAllLocalElements() |
java.lang.Iterable<IEObjectDescription> |
getElements(QualifiedName name)
Find all descriptions that match the given name.
|
protected java.util.List<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) |
protected boolean |
looksLikeLocalVariable(XAbstractFeatureCall featureCall,
java.util.List<IEObjectDescription> localElements) |
findAllFeaturesByName, getFeatureCall, getLocalElementsByEObject, getSession, getShadowingKey, processAsPropertyNames, processFeatureNames, toProperty, tryGetAsPropertyNamegetAllElements, getElements, getParent, getParentElements, getSingleElement, getSingleLocalElementByName, isIgnoreCase, toStringpublic LocalVariableScope(IScope parent, IFeatureScopeSession session, XAbstractFeatureCall featureCall)
protected java.util.List<IEObjectDescription> getAllLocalElements()
getAllLocalElements in class AbstractSessionBasedScopepublic IEObjectDescription getSingleElement(QualifiedName name)
IScopegetSingleElement in interface IScopegetSingleElement in class AbstractScopename - the name of the to-be-found element. May not be null.name. May be null.protected java.util.List<IEObjectDescription> getLocalElementsByName(QualifiedName name)
getLocalElementsByName in class AbstractSessionBasedScopeprotected boolean canBeLocalVariable()
protected boolean looksLikeLocalVariable(XAbstractFeatureCall featureCall)
protected boolean looksLikeLocalVariable(XAbstractFeatureCall featureCall, java.util.List<IEObjectDescription> localElements)
localElements - subclasses may use that.public java.lang.Iterable<IEObjectDescription> getElements(QualifiedName name)
IScopegetElements in interface IScopegetElements in class AbstractSessionBasedScopename - the name of the to-be-found elements. May not be null.name. Never null.protected boolean isShadowed(IEObjectDescription fromParent)
AbstractScopetrue if the given description input from the parent scope is
shadowed by local elements.isShadowed in class AbstractSessionBasedScopetrue if the given description input from the parent scope is
shadowed by local elements.