public class ConstructorTypeScopeWrapper extends java.lang.Object implements IScope
UnsupportedOperationException
:
Constructor and Description |
---|
ConstructorTypeScopeWrapper(org.eclipse.emf.ecore.EObject context,
IVisibilityHelper visibilityHelper,
IScope typeScope) |
ConstructorTypeScopeWrapper(org.eclipse.emf.ecore.EObject context,
IVisibilityHelper visibilityHelper,
IScope typeScope,
boolean strict) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFeatureDescriptions(IEObjectDescription typeDescription,
java.util.List<IEObjectDescription> result) |
protected java.lang.Iterable<IEObjectDescription> |
createFeatureDescriptions(java.lang.Iterable<IEObjectDescription> original) |
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.
|
protected org.eclipse.emf.ecore.EObject |
getResolvedProxy(IEObjectDescription description) |
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.
|
public ConstructorTypeScopeWrapper(org.eclipse.emf.ecore.EObject context, IVisibilityHelper visibilityHelper, IScope typeScope)
public ConstructorTypeScopeWrapper(org.eclipse.emf.ecore.EObject context, IVisibilityHelper visibilityHelper, IScope typeScope, boolean strict)
public java.lang.Iterable<IEObjectDescription> getAllElements()
IScope
UnsupportedOperationException
if the scope cannot be enumerated.getAllElements
in interface IScope
null
.java.lang.UnsupportedOperationException
- alwaysprotected java.lang.Iterable<IEObjectDescription> createFeatureDescriptions(java.lang.Iterable<IEObjectDescription> original)
protected void addFeatureDescriptions(IEObjectDescription typeDescription, java.util.List<IEObjectDescription> result)
protected org.eclipse.emf.ecore.EObject getResolvedProxy(IEObjectDescription description)
public java.lang.Iterable<IEObjectDescription> getElements(org.eclipse.emf.ecore.EObject object)
IScope
getElements
in interface IScope
object
- the instance whose descriptions should be obtained. May not be null
.instance
. Never null
.public java.lang.Iterable<IEObjectDescription> getElements(QualifiedName name)
IScope
getElements
in interface IScope
name
- the name of the to-be-found elements. May not be null
.name
. Never null
.public IEObjectDescription getSingleElement(org.eclipse.emf.ecore.EObject object)
IScope
getSingleElement
in interface IScope
object
- the instance whose description should be obtained. May not be null
.instance
. May be null
.java.lang.UnsupportedOperationException
- alwayspublic IEObjectDescription getSingleElement(QualifiedName name)
IScope
getSingleElement
in interface IScope
name
- the name of the to-be-found element. May not be null
.name
. May be null
.java.lang.UnsupportedOperationException
- always