org.eclipse.xtext.scoping.impl
Class SelectableBasedScope

java.lang.Object
  extended by org.eclipse.xtext.scoping.impl.AbstractScope
      extended by org.eclipse.xtext.scoping.impl.SelectableBasedScope
All Implemented Interfaces:
IScope

public class SelectableBasedScope
extends AbstractScope

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
protected SelectableBasedScope(IScope outer, ISelectable selectable, com.google.common.base.Predicate<IEObjectDescription> filter, org.eclipse.emf.ecore.EClass type, boolean ignoreCase)
           
 
Method Summary
static IScope createScope(IScope outer, ISelectable selectable, org.eclipse.emf.ecore.EClass type, boolean ignoreCase)
           
static IScope createScope(IScope outer, ISelectable selectable, com.google.common.base.Predicate<IEObjectDescription> filter, org.eclipse.emf.ecore.EClass type, boolean ignoreCase)
           
protected  java.lang.Iterable<IEObjectDescription> filterLocalElements(java.lang.Iterable<IEObjectDescription> unfiltered)
           
protected  java.lang.Iterable<IEObjectDescription> getAllLocalElements()
           
protected  com.google.common.base.Predicate<IEObjectDescription> getFilter()
           
protected  java.lang.Iterable<IEObjectDescription> getLocalElementsByName(QualifiedName name)
           
protected  ISelectable getSelectable()
           
 
Methods inherited from class org.eclipse.xtext.scoping.impl.AbstractScope
getAllElements, getElements, getElements, getLocalElementsByEObject, getParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, isShadowed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectableBasedScope

protected SelectableBasedScope(IScope outer,
                               ISelectable selectable,
                               com.google.common.base.Predicate<IEObjectDescription> filter,
                               org.eclipse.emf.ecore.EClass type,
                               boolean ignoreCase)
Method Detail

createScope

public static IScope createScope(IScope outer,
                                 ISelectable selectable,
                                 org.eclipse.emf.ecore.EClass type,
                                 boolean ignoreCase)

createScope

public static IScope createScope(IScope outer,
                                 ISelectable selectable,
                                 com.google.common.base.Predicate<IEObjectDescription> filter,
                                 org.eclipse.emf.ecore.EClass type,
                                 boolean ignoreCase)

getLocalElementsByName

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

getAllLocalElements

protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
Specified by:
getAllLocalElements in class AbstractScope

getSelectable

protected ISelectable getSelectable()

getFilter

protected com.google.common.base.Predicate<IEObjectDescription> getFilter()

filterLocalElements

protected java.lang.Iterable<IEObjectDescription> filterLocalElements(java.lang.Iterable<IEObjectDescription> unfiltered)