org.eclipse.xtext.xbase.scoping.batch
Class LocalVariableScope
java.lang.Object
org.eclipse.xtext.scoping.impl.AbstractScope
org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope
org.eclipse.xtext.xbase.scoping.batch.LocalVariableScope
- All Implemented Interfaces:
- IScope
public class LocalVariableScope
- extends AbstractSessionBasedScope
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LocalVariableScope
public LocalVariableScope(IScope parent,
IFeatureScopeSession session,
XAbstractFeatureCall featureCall)
getAllLocalElements
protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
- Specified by:
getAllLocalElements
in class AbstractScope
getLocalElementsByName
protected java.util.Collection<IEObjectDescription> getLocalElementsByName(QualifiedName name)
- Specified by:
getLocalElementsByName
in class AbstractSessionBasedScope
looksLikeLocalVariable
protected boolean looksLikeLocalVariable()
getElements
public java.lang.Iterable<IEObjectDescription> getElements(QualifiedName name)
- Description copied from interface:
IScope
- Find all descriptions that match the given name.
- Specified by:
getElements
in interface IScope
- Overrides:
getElements
in class AbstractSessionBasedScope
- Parameters:
name
- the name of the to-be-found elements. May not be null
.
- Returns:
- all elements that match the
name
. Never null
.
isShadowed
protected boolean isShadowed(IEObjectDescription fromParent)
- Description copied from class:
AbstractScope
- Returns
true
if the given description input
from the parent scope is
shadowed by local elements.
- Overrides:
isShadowed
in class AbstractSessionBasedScope
- Returns:
true
if the given description input
from the parent scope is
shadowed by local elements.