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
public abstract class BlockVariablesScope extends LightAbstractScope
Create scope for variable inBlockfor Bsl language
-
-
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 BlockVariablesScope(org.eclipse.xtext.scoping.IScope parent, Block block, com.google.common.base.Predicate<DeclareStatement> filter)Initialize
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract VariablefindByName(String name)FindVariableby nameprotected ExplicitVariablefindExplicitVariable(String name)FindExplicitVariableby nameprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription>getAllLocalElements()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.protected abstract Iterable<org.eclipse.xtext.resource.IEObjectDescription>prepareAllLocalElements()Gets allIEObjectDescriptionfor local element inBlockprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription>prepareExplicitVariables()-
Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
getAllElements, getElements, getElements, getLocalElementsByEObject, getLocalElementsByName, getParent, getParentElements, getSingleElement, getSingleElement, isIgnoreCase, toString
-
-
-
-
Constructor Detail
-
BlockVariablesScope
public BlockVariablesScope(org.eclipse.xtext.scoping.IScope parent, Block block, com.google.common.base.Predicate<DeclareStatement> filter)Initialize- Parameters:
parent- parent scopeblock-Blockof Bsl language. Can't benullfilter- filter by name
-
-
Method Detail
-
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.
-
findByName
protected abstract Variable findByName(String name)
FindVariableby name- Parameters:
name- name of the looking for variable- Returns:
- found
Variableornull
-
findExplicitVariable
protected ExplicitVariable findExplicitVariable(String name)
FindExplicitVariableby name- Parameters:
name- name of the looking for variable- Returns:
- found
ExplicitVariableornull
-
prepareAllLocalElements
protected abstract Iterable<org.eclipse.xtext.resource.IEObjectDescription> prepareAllLocalElements()
Gets allIEObjectDescriptionfor local element inBlock- Returns:
- iterable object of
IEObjectDescription
-
prepareExplicitVariables
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> prepareExplicitVariables()
- Returns:
- iterable object of
IEObjectDescription
-
-