Package com._1c.g5.v8.dt.lcore.scoping
Class CompositeScope
- java.lang.Object
-
- org.eclipse.xtext.scoping.impl.AbstractScope
-
- com._1c.g5.v8.dt.lcore.scoping.CompositeScope
-
- All Implemented Interfaces:
org.eclipse.xtext.scoping.IScope
public class CompositeScope extends org.eclipse.xtext.scoping.impl.AbstractScope
Composes several scopes into one.
-
-
Constructor Summary
Constructors Constructor Description CompositeScope(org.eclipse.xtext.scoping.IScope parent, boolean ignoreCase)
Constructs a composite scope.
-
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)
List<org.eclipse.xtext.scoping.IScope>
getScopes()
Returns the list of scopes composed by this scope.
-
-
-
Constructor Detail
-
CompositeScope
public CompositeScope(org.eclipse.xtext.scoping.IScope parent, boolean ignoreCase)
Constructs a composite scope. The scope is initially empty. Scopes to compose may be added withgetScopes()
.- Parameters:
parent
-ignoreCase
-
-
-
Method Detail
-
getScopes
public List<org.eclipse.xtext.scoping.IScope> getScopes()
Returns the list of scopes composed by this scope. The list is "live", i.e. any modifications to it will be reflected in the behavior of the composite scope.- Returns:
- the list of scopes composed by this scope (never
null
)
-
getLocalElementsByName
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name)
- Overrides:
getLocalElementsByName
in classorg.eclipse.xtext.scoping.impl.AbstractScope
-
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 classorg.eclipse.xtext.scoping.impl.AbstractScope
-
getAllLocalElements
protected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements()
- Specified by:
getAllLocalElements
in classorg.eclipse.xtext.scoping.impl.AbstractScope
-
-