org.eclipse.xtext.scoping.impl
Class AbstractScope.ParentIterable

java.lang.Object
  extended by org.eclipse.xtext.scoping.impl.AbstractScope.ParentIterable
All Implemented Interfaces:
com.google.common.base.Predicate<IEObjectDescription>, java.lang.Iterable<IEObjectDescription>
Enclosing class:
AbstractScope

protected static class AbstractScope.ParentIterable
extends java.lang.Object
implements java.lang.Iterable<IEObjectDescription>, com.google.common.base.Predicate<IEObjectDescription>

Lazy iterable with a reasonable toString() implementation that supports shadowing of parents elements by means of filtering.


Constructor Summary
protected AbstractScope.ParentIterable(AbstractScope scope, com.google.inject.Provider<java.lang.Iterable<IEObjectDescription>> provider)
           
 
Method Summary
 boolean apply(IEObjectDescription input)
           
 java.util.Iterator<IEObjectDescription> iterator()
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

AbstractScope.ParentIterable

protected AbstractScope.ParentIterable(AbstractScope scope,
                                       com.google.inject.Provider<java.lang.Iterable<IEObjectDescription>> provider)
Method Detail

iterator

public java.util.Iterator<IEObjectDescription> iterator()
Specified by:
iterator in interface java.lang.Iterable<IEObjectDescription>

apply

public boolean apply(IEObjectDescription input)
Specified by:
apply in interface com.google.common.base.Predicate<IEObjectDescription>

toString

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