org.eclipse.xtext.xbase.scoping.featurecalls
Class FilteredDelegatingScope
java.lang.Object
org.eclipse.xtext.scoping.impl.AbstractScope
org.eclipse.xtext.scoping.impl.SimpleScope
org.eclipse.xtext.xbase.scoping.featurecalls.JvmFeatureScope
org.eclipse.xtext.xbase.scoping.DelegatingScope
org.eclipse.xtext.xbase.scoping.featurecalls.FilteredDelegatingScope
- All Implemented Interfaces:
- com.google.common.base.Predicate<IEObjectDescription>, IScope
public class FilteredDelegatingScope
- extends DelegatingScope
- implements com.google.common.base.Predicate<IEObjectDescription>
A scope implementation that allows to decorate a LazyJvmFeatureScope
to
apply filtering on the content.
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.common.base.Predicate |
equals |
FilteredDelegatingScope
protected FilteredDelegatingScope(IScope parent,
LazyJvmFeatureScope unfiltered,
boolean onlyVisibleAndValidStaticState)
setDelegate
public void setDelegate(IScope delegate)
- Overrides:
setDelegate
in class DelegatingScope
getDelegate
protected LazyJvmFeatureScope getDelegate()
- Overrides:
getDelegate
in class DelegatingScope
getLocalElementsByEObject
protected java.lang.Iterable<IEObjectDescription> getLocalElementsByEObject(org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.common.util.URI uri)
- Overrides:
getLocalElementsByEObject
in class DelegatingScope
getLocalElementsByName
protected java.lang.Iterable<IEObjectDescription> getLocalElementsByName(QualifiedName name)
- Overrides:
getLocalElementsByName
in class DelegatingScope
getSingleLocalElementByName
protected IEObjectDescription getSingleLocalElementByName(QualifiedName name)
- Overrides:
getSingleLocalElementByName
in class DelegatingScope
getAllLocalElements
protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
- Overrides:
getAllLocalElements
in class DelegatingScope
getJvmFeatureDescriptions
public java.lang.Iterable<IValidatedEObjectDescription> getJvmFeatureDescriptions()
- Overrides:
getJvmFeatureDescriptions
in class JvmFeatureScope
apply
public boolean apply(IEObjectDescription input)
- Specified by:
apply
in interface com.google.common.base.Predicate<IEObjectDescription>
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 AbstractScope
- Parameters:
name
- the name of the to-be-found elements. May not be null
.
- Returns:
- all elements that match the
name
. Never null
.
isShadowedBy
protected boolean isShadowedBy(IEObjectDescription fromParent,
java.lang.Iterable<IEObjectDescription> localElements)
- Overrides:
isShadowedBy
in class JvmFeatureScope
- See Also:
JvmFeatureScope.isShadowed(IEObjectDescription)