Class LightSimpleScope
- java.lang.Object
-
- com._1c.g5.modeling.xtext.scoping.LightAbstractScope
-
- com._1c.g5.modeling.xtext.scoping.LightSimpleScope
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
- Direct Known Subclasses:
CachedLightSimpleScope
public class LightSimpleScope extends LightAbstractScope
Lightweight implementation of the SimpleScope.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
LightAbstractScope.EObjectFilterPredicate, LightAbstractScope.ParentIterable
-
-
Field Summary
Fields Modifier and Type Field Description protected Iterable<org.eclipse.xtext.resource.IEObjectDescription>
descriptions
-
Constructor Summary
Constructors Constructor Description LightSimpleScope(Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions)
ConstructorLightSimpleScope(Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions, boolean ignoreCase)
ConstructorLightSimpleScope(org.eclipse.xtext.scoping.IScope parent, Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions)
ConstructorLightSimpleScope(org.eclipse.xtext.scoping.IScope parent, Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions, boolean ignoreCase)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getAllLocalElements()
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getLocalElementsByEObject(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.common.util.URI uri)
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription>
getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)
protected Object
getShadowingKey(org.eclipse.xtext.resource.IEObjectDescription description)
protected org.eclipse.xtext.resource.IEObjectDescription
getSingleLocalElementByName(org.eclipse.xtext.naming.QualifiedName name)
-
Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScope
getAllElements, getElements, getElements, getParent, getParentElements, getSingleElement, getSingleElement, isIgnoreCase, isShadowed, toString
-
-
-
-
Field Detail
-
descriptions
protected final Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions
-
-
Constructor Detail
-
LightSimpleScope
public LightSimpleScope(org.eclipse.xtext.scoping.IScope parent, Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions, boolean ignoreCase)
Constructor- Parameters:
parent
- parent scope, can't benull
descriptions
-IEObjectDescription
s for creating scope, can't benull
ignoreCase
-true
if it's insensitive scope,false
otherwise
-
LightSimpleScope
public LightSimpleScope(org.eclipse.xtext.scoping.IScope parent, Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions)
Constructor- Parameters:
parent
- parent scope, can't benull
descriptions
-IEObjectDescription
s for creating scope, can't benull
-
LightSimpleScope
public LightSimpleScope(Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions, boolean ignoreCase)
Constructor- Parameters:
descriptions
-IEObjectDescription
s for creating scope, can't benull
ignoreCase
-true
if it's insensitive scope,false
otherwise
-
LightSimpleScope
public LightSimpleScope(Iterable<org.eclipse.xtext.resource.IEObjectDescription> descriptions)
Constructor- Parameters:
descriptions
-IEObjectDescription
s for creating scope, can't benull
-
-
Method Detail
-
getAllLocalElements
protected final Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
- Specified by:
getAllLocalElements
in classLightAbstractScope
-
getLocalElementsByEObject
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByEObject(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.common.util.URI uri)
- Overrides:
getLocalElementsByEObject
in classLightAbstractScope
-
getShadowingKey
protected Object getShadowingKey(org.eclipse.xtext.resource.IEObjectDescription description)
- Returns:
- the key of the given description, which makes it shadowing others
-
getLocalElementsByName
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)
- Overrides:
getLocalElementsByName
in classLightAbstractScope
-
getSingleLocalElementByName
protected org.eclipse.xtext.resource.IEObjectDescription getSingleLocalElementByName(org.eclipse.xtext.naming.QualifiedName name)
- Overrides:
getSingleLocalElementByName
in classLightAbstractScope
-
-