Package org.eclipse.xtext.linking.impl
Class ImportedNamesAdapter.WrappingScope
- java.lang.Object
-
- org.eclipse.xtext.linking.impl.ImportedNamesAdapter.WrappingScope
-
- All Implemented Interfaces:
IScope
- Enclosing class:
- ImportedNamesAdapter
public class ImportedNamesAdapter.WrappingScope extends java.lang.Object implements IScope
-
-
Constructor Summary
Constructors Constructor Description WrappingScope(IScope scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<IEObjectDescription>
getAllElements()
Obtain all elements from the scope.java.lang.Iterable<IEObjectDescription>
getElements(org.eclipse.emf.ecore.EObject object)
Find all descriptions that match the given instance.java.lang.Iterable<IEObjectDescription>
getElements(QualifiedName name)
Find all descriptions that match the given name.IEObjectDescription
getSingleElement(org.eclipse.emf.ecore.EObject object)
Find the first description that matches the given instance.IEObjectDescription
getSingleElement(QualifiedName name)
Find the first description that matches the given name.protected void
handleNoNameQuery()
java.lang.String
toString()
-
-
-
Constructor Detail
-
WrappingScope
public WrappingScope(IScope scope)
-
-
Method Detail
-
getSingleElement
public IEObjectDescription getSingleElement(QualifiedName name)
Description copied from interface:IScope
Find the first description that matches the given name.- Specified by:
getSingleElement
in interfaceIScope
- Parameters:
name
- the name of the to-be-found element. May not benull
.- Returns:
- the first element that matches the
name
. May benull
.
-
getElements
public java.lang.Iterable<IEObjectDescription> getElements(QualifiedName name)
Description copied from interface:IScope
Find all descriptions that match the given name.- Specified by:
getElements
in interfaceIScope
- Parameters:
name
- the name of the to-be-found elements. May not benull
.- Returns:
- all elements that match the
name
. Nevernull
.
-
getElements
public java.lang.Iterable<IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object)
Description copied from interface:IScope
Find all descriptions that match the given instance.- Specified by:
getElements
in interfaceIScope
- Parameters:
object
- the instance whose descriptions should be obtained. May not benull
.- Returns:
- all elements that match the
instance
. Nevernull
.
-
getSingleElement
public IEObjectDescription getSingleElement(org.eclipse.emf.ecore.EObject object)
Description copied from interface:IScope
Find the first description that matches the given instance.- Specified by:
getSingleElement
in interfaceIScope
- Parameters:
object
- the instance whose description should be obtained. May not benull
.- Returns:
- the first element that matches the
instance
. May benull
.
-
getAllElements
public java.lang.Iterable<IEObjectDescription> getAllElements()
Description copied from interface:IScope
Obtain all elements from the scope. Implementors a free to throw anUnsupportedOperationException
if the scope cannot be enumerated.- Specified by:
getAllElements
in interfaceIScope
- Returns:
- all elements of the scope. Never
null
.
-
handleNoNameQuery
protected void handleNoNameQuery()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-