Class NullSlicedScope
java.lang.Object
com._1c.g5.modeling.xtext.scoping.NullSlicedScope
- All Implemented Interfaces:
ISlicedScope,org.eclipse.xtext.scoping.IScope
public class NullSlicedScope
extends Object
implements org.eclipse.xtext.scoping.IScope, ISlicedScope
The same as
IScope for ISlicedScope interface-
Field Summary
Fields inherited from interface org.eclipse.xtext.scoping.IScope
NULLSCOPEFields inherited from interface com._1c.g5.modeling.xtext.scoping.ISlicedScope
NULLSCOPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable<org.eclipse.xtext.resource.IEObjectDescription>Iterable<org.eclipse.xtext.resource.IEObjectDescription>getAllElements(Collection<ISliceFilter> slices) Obtain all elements from the scope.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.org.eclipse.xtext.resource.IEObjectDescriptiongetSingleElement(org.eclipse.emf.ecore.EObject object) org.eclipse.xtext.resource.IEObjectDescriptiongetSingleElement(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.toString()
-
Constructor Details
-
NullSlicedScope
public NullSlicedScope()
-
-
Method Details
-
toString
-
getSingleElement
public 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 interfaceISlicedScope- Parameters:
name- the name of the to-be-found element. May not benull.slices- list of predicates corresponding to the index slices, can't benull- Returns:
- the first element that matches the
name. May benull.
-
getElements
public 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 interfaceISlicedScope- Parameters:
name- the name of the to-be-found elements. May not benull.slices- list of predicates corresponding to the index slices, can't benull- Returns:
- all elements that match the
name. Nevernull.
-
getAllElements
public 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 interfaceISlicedScope- Parameters:
slices- list of predicates corresponding to the index slices, can't benull- Returns:
- all elements of the scope. Never
null.
-
getElements
public 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 interfaceISlicedScope- Parameters:
object- the instance whose descriptions should be obtained. May not benull.slices- list of predicates corresponding to the index slices, can't benull- Returns:
- all elements that match the
instance. Nevernull.
-
getSingleElement
public org.eclipse.xtext.resource.IEObjectDescription getSingleElement(org.eclipse.xtext.naming.QualifiedName name) - Specified by:
getSingleElementin interfaceorg.eclipse.xtext.scoping.IScope
-
getElements
public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.xtext.naming.QualifiedName name) - Specified by:
getElementsin interfaceorg.eclipse.xtext.scoping.IScope
-
getSingleElement
public org.eclipse.xtext.resource.IEObjectDescription getSingleElement(org.eclipse.emf.ecore.EObject object) - Specified by:
getSingleElementin interfaceorg.eclipse.xtext.scoping.IScope
-
getElements
public Iterable<org.eclipse.xtext.resource.IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object) - Specified by:
getElementsin interfaceorg.eclipse.xtext.scoping.IScope
-
getAllElements
- Specified by:
getAllElementsin interfaceorg.eclipse.xtext.scoping.IScope
-