Class CompositeScope
- java.lang.Object
- 
- com._1c.g5.modeling.xtext.scoping.LightAbstractScope
- 
- com._1c.g5.modeling.xtext.scoping.CompositeScope
 
 
- 
- All Implemented Interfaces:
- ISlicedScope,- org.eclipse.xtext.scoping.IScope
 
 public class CompositeScope extends LightAbstractScope implements ISlicedScope Composes several scopes into one.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScopeLightAbstractScope.EObjectFilterPredicate, LightAbstractScope.ParentIterable
 
- 
 - 
Field Summary- 
Fields inherited from interface com._1c.g5.modeling.xtext.scoping.ISlicedScopeNULLSCOPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description CompositeScope(org.eclipse.xtext.scoping.IScope parent, boolean ignoreCase)Constructs a composite scope.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddScope(org.eclipse.xtext.scoping.IScope scope)Adds new scopeIterable<org.eclipse.xtext.resource.IEObjectDescription>getAllElements()Iterable<org.eclipse.xtext.resource.IEObjectDescription>getAllElements(Collection<ISliceFilter> slices)Obtain all elements from the scope.protected Iterable<org.eclipse.xtext.resource.IEObjectDescription>getAllLocalElements()Iterable<org.eclipse.xtext.resource.IEObjectDescription>getElements(org.eclipse.emf.ecore.EObject object)Iterable<org.eclipse.xtext.resource.IEObjectDescription>getElements(org.eclipse.emf.ecore.EObject object, Collection<ISliceFilter> slices)Finds all descriptions that match the given instance.Iterable<org.eclipse.xtext.resource.IEObjectDescription>getElements(org.eclipse.xtext.naming.QualifiedName name)Iterable<org.eclipse.xtext.resource.IEObjectDescription>getElements(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices)Find all descriptions that match the given name.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)org.eclipse.xtext.resource.IEObjectDescriptiongetSingleElement(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices)Finds the first description that matches the given name.- 
Methods inherited from class com._1c.g5.modeling.xtext.scoping.LightAbstractScopegetParent, getParentElements, getSingleElement, getSingleElement, getSingleLocalElementByName, isIgnoreCase, isShadowed, toString
 
- 
 
- 
- 
- 
Method Detail- 
addScopepublic void addScope(org.eclipse.xtext.scoping.IScope scope) Adds new scope- Parameters:
- scope- adding scope, can't be- null
 
 - 
getElementspublic Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object) - Specified by:
- getElementsin interface- org.eclipse.xtext.scoping.IScope
- Overrides:
- getElementsin class- LightAbstractScope
 
 - 
getAllElementspublic Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllElements() - Specified by:
- getAllElementsin interface- org.eclipse.xtext.scoping.IScope
- Overrides:
- getAllElementsin class- LightAbstractScope
 
 - 
getElementspublic Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.xtext.naming.QualifiedName name) - Specified by:
- getElementsin interface- org.eclipse.xtext.scoping.IScope
- Overrides:
- getElementsin class- LightAbstractScope
 
 - 
getSingleElementpublic org.eclipse.xtext.resource.IEObjectDescription getSingleElement(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices)Description copied from interface:ISlicedScopeFinds the first description that matches the given name.- Specified by:
- getSingleElementin interface- ISlicedScope
- Parameters:
- name- the name of the to-be-found element. May not be- null.
- slices- list of predicates corresponding to the index slices, can't be- null
- Returns:
- the first element that matches the name. May benull.
 
 - 
getElementspublic Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.xtext.naming.QualifiedName name, Collection<ISliceFilter> slices) Description copied from interface:ISlicedScopeFind all descriptions that match the given name.- Specified by:
- getElementsin interface- ISlicedScope
- Parameters:
- name- the name of the to-be-found elements. May not be- null.
- slices- list of predicates corresponding to the index slices, can't be- null
- Returns:
- all elements that match the name. Nevernull.
 
 - 
getAllElementspublic Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllElements(Collection<ISliceFilter> slices) Description copied from interface:ISlicedScopeObtain all elements from the scope. Implementors a free to throw anUnsupportedOperationExceptionif the scope cannot be enumerated.- Specified by:
- getAllElementsin interface- ISlicedScope
- Parameters:
- slices- list of predicates corresponding to the index slices, can't be- null
- Returns:
- all elements of the scope. Never null.
 
 - 
getElementspublic Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object, Collection<ISliceFilter> slices) Description copied from interface:ISlicedScopeFinds all descriptions that match the given instance.- Specified by:
- getElementsin interface- ISlicedScope
- Parameters:
- object- the instance whose descriptions should be obtained. May not be- null.
- slices- list of predicates corresponding to the index slices, can't be- null
- Returns:
- all elements that match the instance. Nevernull.
 
 - 
getLocalElementsByNameprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByName(org.eclipse.xtext.naming.QualifiedName name) - Overrides:
- getLocalElementsByNamein class- LightAbstractScope
 
 - 
getLocalElementsByEObjectprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getLocalElementsByEObject(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.common.util.URI uri) - Overrides:
- getLocalElementsByEObjectin class- LightAbstractScope
 
 - 
getAllLocalElementsprotected Iterable<org.eclipse.xtext.resource.IEObjectDescription> getAllLocalElements() - Specified by:
- getAllLocalElementsin class- LightAbstractScope
 
 
- 
 
-