org.eclipse.xtext.xbase.scoping.featurecalls
Class LazyJvmFeatureScope

java.lang.Object
  extended by org.eclipse.xtext.scoping.impl.AbstractScope
      extended by org.eclipse.xtext.scoping.impl.SimpleScope
          extended by org.eclipse.xtext.xbase.scoping.featurecalls.JvmFeatureScope
              extended by org.eclipse.xtext.xbase.scoping.featurecalls.LazyJvmFeatureScope
All Implemented Interfaces:
IScope

public class LazyJvmFeatureScope
extends JvmFeatureScope

Internal scope implementation for Xbase feature scopes. Clients should not use this directly.

Author:
Sebastian Zarnekow - Initial contribution and API
See Also:
FilteredDelegatingScope

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.scoping.impl.AbstractScope
AbstractScope.ParentIterable
 
Field Summary
 
Fields inherited from class org.eclipse.xtext.scoping.impl.SimpleScope
shadowingIndex
 
Fields inherited from interface org.eclipse.xtext.scoping.IScope
NULLSCOPE
 
Constructor Summary
protected LazyJvmFeatureScope(java.lang.String scopeDescription, LazyJvmFeatureScopeStrategy strategy)
           
 
Method Summary
protected  java.lang.Iterable<IEObjectDescription> getAllLocalElements()
           
 java.lang.Iterable<IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object)
          Find all descriptions that match the given instance.
 java.util.List<IEObjectDescription> getElements(QualifiedName name)
          Find all descriptions that match the given name.
protected  java.util.List<IEObjectDescription> getLocalElementsByName(QualifiedName name)
           
 
Methods inherited from class org.eclipse.xtext.xbase.scoping.featurecalls.JvmFeatureScope
getJvmFeatureDescriptions, getScopeDescription, getShadowingKey, isShadowed, isShadowedBy, toString
 
Methods inherited from class org.eclipse.xtext.scoping.impl.SimpleScope
getLocalElementsByEObject
 
Methods inherited from class org.eclipse.xtext.scoping.impl.AbstractScope
getAllElements, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyJvmFeatureScope

protected LazyJvmFeatureScope(java.lang.String scopeDescription,
                              LazyJvmFeatureScopeStrategy strategy)
Method Detail

getLocalElementsByName

protected java.util.List<IEObjectDescription> getLocalElementsByName(QualifiedName name)
Overrides:
getLocalElementsByName in class AbstractScope

getAllLocalElements

protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
Overrides:
getAllLocalElements in class SimpleScope

getElements

public java.util.List<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 AbstractScope
Parameters:
name - the name of the to-be-found elements. May not be null.
Returns:
all elements that match the name. Never null.

getElements

public java.lang.Iterable<IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object)
Description copied from interface: IScope
Find all descriptions that match the given instance.

Specified by:
getElements in interface IScope
Overrides:
getElements in class AbstractScope
Parameters:
object - the instance whose descriptions should be obtained. May not be null.
Returns:
all elements that match the instance. Never null.