public abstract class AbstractTypeScope extends AbstractScope
types
.
Case insensitivity is not supported. It's always the most outer scope.AbstractScope.ParentIterable
Modifier | Constructor and Description |
---|---|
protected |
AbstractTypeScope(IJvmTypeProvider typeProvider,
IQualifiedNameConverter qualifiedNameConverter,
com.google.common.base.Predicate<IEObjectDescription> filter) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Iterable<IEObjectDescription> |
filterResult(java.lang.Iterable<IEObjectDescription> unfiltered) |
java.lang.Iterable<IEObjectDescription> |
getAllElements()
Obtain all elements from the scope.
|
protected java.lang.Iterable<IEObjectDescription> |
getAllLocalElements() |
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.
|
IQualifiedNameConverter |
getQualifiedNameConverter() |
IEObjectDescription |
getSingleElement(QualifiedName name)
Find the first description that matches the given name.
|
IEObjectDescription |
getSingleElement(QualifiedName name,
boolean binary) |
IJvmTypeProvider |
getTypeProvider() |
protected java.lang.Iterable<IEObjectDescription> |
internalGetAllElements() |
java.lang.String |
toString() |
getLocalElementsByEObject, getLocalElementsByName, getParent, getParentElements, getSingleElement, getSingleLocalElementByName, isIgnoreCase, isShadowed
protected AbstractTypeScope(IJvmTypeProvider typeProvider, IQualifiedNameConverter qualifiedNameConverter, com.google.common.base.Predicate<IEObjectDescription> filter)
public IEObjectDescription getSingleElement(QualifiedName name)
IScope
getSingleElement
in interface IScope
getSingleElement
in class AbstractScope
name
- the name of the to-be-found element. May not be null
.name
. May be null
.public IEObjectDescription getSingleElement(QualifiedName name, boolean binary)
public java.lang.Iterable<IEObjectDescription> getElements(QualifiedName name)
IScope
getElements
in interface IScope
getElements
in class AbstractScope
name
- the name of the to-be-found elements. May not be null
.name
. Never null
.public java.lang.Iterable<IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object)
IScope
getElements
in interface IScope
getElements
in class AbstractScope
object
- the instance whose descriptions should be obtained. May not be null
.instance
. Never null
.protected java.lang.Iterable<IEObjectDescription> filterResult(java.lang.Iterable<IEObjectDescription> unfiltered)
public java.lang.Iterable<IEObjectDescription> getAllElements()
IScope
UnsupportedOperationException
if the scope cannot be enumerated.getAllElements
in interface IScope
getAllElements
in class AbstractScope
null
.protected java.lang.Iterable<IEObjectDescription> internalGetAllElements()
protected java.lang.Iterable<IEObjectDescription> getAllLocalElements()
getAllLocalElements
in class AbstractScope
public IJvmTypeProvider getTypeProvider()
public IQualifiedNameConverter getQualifiedNameConverter()
public java.lang.String toString()
toString
in class AbstractScope