Class LightAbstractScope.EObjectFilterPredicate

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

    public static class LightAbstractScope.EObjectFilterPredicate
    extends Object
    implements com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>
    Special filter for finding index element corresponding to the concrete EObject
    • Constructor Detail

      • EObjectFilterPredicate

        public EObjectFilterPredicate​(org.eclipse.emf.ecore.EObject object,
                                      LightAbstractScope scope)
        Constructor
        Parameters:
        object - concrete EObject for findinf index element, can't be null
        scope - actual LightAbstractScope of indexing local elements, can't be null
    • 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>
      • canBeFoundByName

        protected boolean canBeFoundByName​(org.eclipse.xtext.resource.IEObjectDescription input)
        Tries to find element corresponding to the input in local scope
        Parameters:
        input - element for searching in local scope by name, can't be null
        Returns:
        true if element with the same name as input was found, false otherwise