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

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
All Implemented Interfaces:
IScope
Direct Known Subclasses:
DelegatingScope, LazyJvmFeatureScope

public class JvmFeatureScope
extends SimpleScope

Author:
Sven Efftinge - 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 class org.eclipse.xtext.scoping.impl.SimpleScope
shadowingIndex
 
Fields inherited from interface org.eclipse.xtext.scoping.IScope
NULLSCOPE
 
Constructor Summary
JvmFeatureScope(IScope parent, java.lang.String scopeDescription, java.util.Collection<? extends IValidatedEObjectDescription> descriptions)
           
JvmFeatureScope(IScope parent, java.lang.String scopeDescription, IValidatedEObjectDescription description)
           
 
Method Summary
 java.lang.Iterable<IValidatedEObjectDescription> getJvmFeatureDescriptions()
           
 java.lang.String getScopeDescription()
           
protected  java.lang.String getShadowingKey(IEObjectDescription description)
           
protected  boolean isShadowed(IEObjectDescription fromParent)
          Returns true if the given description input from the parent scope is shadowed by local elements.
protected  boolean isShadowedBy(IEObjectDescription fromParent, java.lang.Iterable<IEObjectDescription> localElements)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.xtext.scoping.impl.SimpleScope
getAllLocalElements, getLocalElementsByEObject
 
Methods inherited from class org.eclipse.xtext.scoping.impl.AbstractScope
getAllElements, getElements, getElements, getLocalElementsByName, 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

JvmFeatureScope

public JvmFeatureScope(IScope parent,
                       java.lang.String scopeDescription,
                       java.util.Collection<? extends IValidatedEObjectDescription> descriptions)

JvmFeatureScope

public JvmFeatureScope(IScope parent,
                       java.lang.String scopeDescription,
                       IValidatedEObjectDescription description)
Method Detail

getScopeDescription

public java.lang.String getScopeDescription()

getShadowingKey

protected java.lang.String getShadowingKey(IEObjectDescription description)
Overrides:
getShadowingKey in class SimpleScope
Returns:
the key of the given description, which makes it shadowing others

getJvmFeatureDescriptions

public java.lang.Iterable<IValidatedEObjectDescription> getJvmFeatureDescriptions()

toString

public java.lang.String toString()
Overrides:
toString in class AbstractScope

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 SimpleScope
Returns:
true if the given description input from the parent scope is shadowed by local elements.

isShadowedBy

protected boolean isShadowedBy(IEObjectDescription fromParent,
                               java.lang.Iterable<IEObjectDescription> localElements)
See Also:
isShadowed(IEObjectDescription)