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

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.lang.Iterable<? extends IValidatedEObjectDescription> descriptions)
           
JvmFeatureScope(IScope parent, java.lang.String scopeDescription, IValidatedEObjectDescription description)
           
 
Method Summary
 java.lang.Iterable<? extends IValidatedEObjectDescription> getJvmFeatureDescriptions()
           
 java.lang.String getScopeDescription()
           
protected  java.lang.String getShadowingKey(IEObjectDescription description)
           
protected  boolean isShadowed(IEObjectDescription fromParent)
           
 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.lang.Iterable<? 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<? extends IValidatedEObjectDescription> getJvmFeatureDescriptions()

toString

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

isShadowed

protected boolean isShadowed(IEObjectDescription fromParent)
Overrides:
isShadowed in class SimpleScope