org.eclipse.xtext.xbase.scoping.batch
Class LocalVariableScope

java.lang.Object
  extended by org.eclipse.xtext.scoping.impl.AbstractScope
      extended by org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope
          extended by org.eclipse.xtext.xbase.scoping.batch.LocalVariableScope
All Implemented Interfaces:
IScope

public class LocalVariableScope
extends AbstractSessionBasedScope

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.scoping.impl.AbstractScope
AbstractScope.ParentIterable
 
Field Summary
 
Fields inherited from interface org.eclipse.xtext.scoping.IScope
NULLSCOPE
 
Constructor Summary
LocalVariableScope(IScope parent, IFeatureScopeSession session, XAbstractFeatureCall featureCall)
           
 
Method Summary
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()
           
 
Methods inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractSessionBasedScope
getFeatureCall, getFeatureName, getLocalElementsByEObject, getSession, getShadowingKey
 
Methods inherited from class org.eclipse.xtext.scoping.impl.AbstractScope
getAllElements, getElements, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalVariableScope

public LocalVariableScope(IScope parent,
                          IFeatureScopeSession session,
                          XAbstractFeatureCall featureCall)
Method Detail

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.