Class LightAbstractScope.ParentIterable

  • All Implemented Interfaces:
    com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>, Iterable<org.eclipse.xtext.resource.IEObjectDescription>, Predicate<org.eclipse.xtext.resource.IEObjectDescription>
    Enclosing class:
    LightAbstractScope

    protected static class LightAbstractScope.ParentIterable
    extends Object
    implements Iterable<org.eclipse.xtext.resource.IEObjectDescription>, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>
    Lazy iterable with a reasonable toString() implementation that supports shadowing of parents elements by means of filtering.
    • Constructor Detail

      • ParentIterable

        protected ParentIterable​(LightAbstractScope scope,
                                 com.google.inject.Provider<Iterable<org.eclipse.xtext.resource.IEObjectDescription>> provider)
    • Method Detail

      • apply

        public boolean apply​(org.eclipse.xtext.resource.IEObjectDescription input)
        Specified by:
        apply in interface com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>
      • iterator

        public Iterator<org.eclipse.xtext.resource.IEObjectDescription> iterator()
        Specified by:
        iterator in interface Iterable<org.eclipse.xtext.resource.IEObjectDescription>