Package com._1c.g5.v8.dt.bsl.scoping
Class BlockVariablesScope
java.lang.Object
com._1c.g5.modeling.xtext.scoping.LightAbstractScope
com._1c.g5.v8.dt.bsl.scoping.BlockVariablesScope
- All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
- Direct Known Subclasses:
MethodVariablesScope
,ModuleVariablesScope
Create scope for variable in
Block
for Bsl language-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
LightAbstractScope.EObjectFilterPredicate, LightAbstractScope.ParentIterable
-
Field Summary
Fields inherited from interface org.eclipse.xtext.scoping.IScope
NULLSCOPE
-
Constructor Summary
ConstructorsConstructorDescriptionBlockVariablesScope
(org.eclipse.xtext.scoping.IScope parent, Block block, com.google.common.base.Predicate<DeclareStatement> filter) Initialize -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Variable
findByName
(String name) FindVariable
by nameprotected ExplicitVariable
findExplicitVariable
(String name) FindExplicitVariable
by nameprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription>
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.protected abstract Iterable<org.eclipse.xtext.resource.IEObjectDescription>
Gets allIEObjectDescription
for local element inBlock
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription>
Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
getAllElements, getElements, getElements, getLocalElementsByEObject, getLocalElementsByName, getParent, getParentElements, getSingleElement, getSingleElement, isIgnoreCase, toString
-
Constructor Details
-
BlockVariablesScope
public BlockVariablesScope(org.eclipse.xtext.scoping.IScope parent, Block block, com.google.common.base.Predicate<DeclareStatement> filter) Initialize- Parameters:
parent
- parent scopeblock
-Block
of Bsl language. Can't benull
filter
- filter by name
-
-
Method Details
-
getSingleLocalElementByName
protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName(org.eclipse.xtext.naming.QualifiedName qName) - Overrides:
getSingleLocalElementByName
in classLightAbstractScope
-
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.
-
findByName
FindVariable
by name- Parameters:
name
- name of the looking for variable- Returns:
- found
Variable
ornull
-
findExplicitVariable
FindExplicitVariable
by name- Parameters:
name
- name of the looking for variable- Returns:
- found
ExplicitVariable
ornull
-
prepareAllLocalElements
protected abstract Iterable<org.eclipse.xtext.resource.IEObjectDescription> prepareAllLocalElements()Gets allIEObjectDescription
for local element inBlock
- Returns:
- iterable object of
IEObjectDescription
-
prepareExplicitVariables
- Returns:
- iterable object of
IEObjectDescription
-