Package com._1c.g5.v8.dt.bsl.scoping
Class ContextItemsScope<E extends DuallyNamedElement & Environmental>
- java.lang.Object
-
- com._1c.g5.modeling.xtext.scoping.LightAbstractScope
-
- com._1c.g5.v8.dt.bsl.scoping.ContextItemsScope<E>
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
- Direct Known Subclasses:
ContextMethodsScope
,ContextPropertiesScope
public abstract class ContextItemsScope<E extends DuallyNamedElement & Environmental> extends LightAbstractScope
Special scope for gettingDuallyNamedElement
andEnvironmental
- See Also:
ContextMethodsScope
,ContextPropertiesScope
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
LightAbstractScope.EObjectFilterPredicate, LightAbstractScope.ParentIterable
-
-
Constructor Summary
Constructors Constructor Description ContextItemsScope(org.eclipse.xtext.scoping.IScope parent, Environments envs)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract List<E>
collectAllItems()
Gets collection of itemprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getAllLocalElements()
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName qName)
protected org.eclipse.xtext.resource.IEObjectDescription
getSingleLocalElementByName(org.eclipse.xtext.naming.QualifiedName qName)
protected boolean
isShadowed(org.eclipse.xtext.resource.IEObjectDescription input)
Returnstrue
if the given descriptioninput
from the parent scope is shadowed by local elements.-
Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
getAllElements, getElements, getElements, getLocalElementsByEObject, getParent, getParentElements, getSingleElement, getSingleElement, isIgnoreCase, toString
-
-
-
-
Constructor Detail
-
ContextItemsScope
public ContextItemsScope(org.eclipse.xtext.scoping.IScope parent, Environments envs)
Constructor- Parameters:
parent
- parent scope, can't benull
envs
- actualEnvironments
, can't benull
-
-
Method Detail
-
getLocalElementsByName
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName qName)
- Overrides:
getLocalElementsByName
in classLightAbstractScope
-
getSingleLocalElementByName
protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName(org.eclipse.xtext.naming.QualifiedName qName)
- Overrides:
getSingleLocalElementByName
in classLightAbstractScope
-
getAllLocalElements
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
- Specified by:
getAllLocalElements
in classLightAbstractScope
-
isShadowed
protected boolean isShadowed(org.eclipse.xtext.resource.IEObjectDescription input)
Description copied from class:LightAbstractScope
Returnstrue
if the given descriptioninput
from the parent scope is shadowed by local elements.- Overrides:
isShadowed
in classLightAbstractScope
- Returns:
true
if the given descriptioninput
from the parent scope is shadowed by local elements.
-
-