Class LightAbstractScope.EObjectFilterPredicate
- java.lang.Object
-
- com._1c.g5.modeling.xtext.scoping.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 concreteEObject
-
-
Constructor Summary
Constructors Constructor Description EObjectFilterPredicate(org.eclipse.emf.ecore.EObject object, LightAbstractScope scope)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(org.eclipse.xtext.resource.IEObjectDescription input)
protected boolean
canBeFoundByName(org.eclipse.xtext.resource.IEObjectDescription input)
Tries to find element corresponding to theinput
in local scope
-
-
-
Constructor Detail
-
EObjectFilterPredicate
public EObjectFilterPredicate(org.eclipse.emf.ecore.EObject object, LightAbstractScope scope)
Constructor- Parameters:
object
- concreteEObject
for findinf index element, can't benull
scope
- actualLightAbstractScope
of indexing local elements, can't benull
-
-
Method Detail
-
apply
public boolean apply(org.eclipse.xtext.resource.IEObjectDescription input)
- Specified by:
apply
in interfacecom.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 theinput
in local scope- Parameters:
input
- element for searching in local scope by name, can't benull
- Returns:
true
if element with the same name asinput
was found,false
otherwise
-
-