Package com._1c.g5.v8.dt.bsl.scoping
Class ImplicitVariablesScope
- java.lang.Object
-
- com._1c.g5.modeling.xtext.scoping.LightAbstractScope
-
- com._1c.g5.v8.dt.bsl.scoping.ImplicitVariablesScope
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
public class ImplicitVariablesScope extends LightAbstractScope
GetsImplicitVariablescope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImplicitVariablesScope.ImplicitVariableCollectorCollector for implicit variables in Bsl module-
Nested classes/interfaces inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
LightAbstractScope.EObjectFilterPredicate, LightAbstractScope.ParentIterable
-
-
Constructor Summary
Constructors Constructor Description ImplicitVariablesScope(org.eclipse.xtext.scoping.IScope parent, Block block, Statement lastStatement, Environments envs)Initialize
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.xtext.util.Pair<ImplicitVariable,Integer>findByQName(org.eclipse.xtext.naming.QualifiedName qName)Gets variable by its name from scopeprotected 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.IEObjectDescriptiongetSingleLocalElementByName(org.eclipse.xtext.naming.QualifiedName qName)protected booleanisShadowed(org.eclipse.xtext.resource.IEObjectDescription input)Returnstrueif the given descriptioninputfrom 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
-
ImplicitVariablesScope
public ImplicitVariablesScope(org.eclipse.xtext.scoping.IScope parent, Block block, Statement lastStatement, Environments envs)Initialize- Parameters:
parent- parent scopeeblock-Blockof Bsl module. Can't benulllastStatement- lastStatement, can benullenvs- correspondingEnvironments, can benullif no environments filter
-
-
Method Detail
-
getLocalElementsByName
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName qName)
- Overrides:
getLocalElementsByNamein classLightAbstractScope
-
getSingleLocalElementByName
protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName(org.eclipse.xtext.naming.QualifiedName qName)
- Overrides:
getSingleLocalElementByNamein classLightAbstractScope
-
getAllLocalElements
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
- Specified by:
getAllLocalElementsin classLightAbstractScope
-
isShadowed
protected boolean isShadowed(org.eclipse.xtext.resource.IEObjectDescription input)
Description copied from class:LightAbstractScopeReturnstrueif the given descriptioninputfrom the parent scope is shadowed by local elements.- Overrides:
isShadowedin classLightAbstractScope- Returns:
trueif the given descriptioninputfrom the parent scope is shadowed by local elements.
-
findByQName
protected org.eclipse.xtext.util.Pair<ImplicitVariable,Integer> findByQName(org.eclipse.xtext.naming.QualifiedName qName)
Gets variable by its name from scope- Parameters:
qName- name of the variable, can't benull- Returns:
- variable with it initialization offset, can be
nullif there is no variable with the name
-
-