public static class ExpressionScope.Scope extends java.lang.Object implements IScope
Constructor and Description |
---|
ExpressionScope.Scope(IScope delegate,
ITypeReferenceOwner owner) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendParameters(JvmExecutable executable,
java.lang.StringBuilder result,
boolean extension) |
protected void |
ensureInitialized() |
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 java.lang.String |
getExtensionSignature(IIdentifiableElementDescription desc) |
protected java.util.List<IIdentifiableElementDescription> |
getFilteredExtensionDescriptions(java.util.Map<java.lang.String,java.util.List<IIdentifiableElementDescription>> extensionSignatures)
Filters the extensions by their most specific first parameter.
|
protected LightweightTypeReference |
getFirstParameterType(IIdentifiableElementDescription candidate) |
protected LightweightTypeReference |
getParameterType(JvmFormalParameter p) |
protected java.lang.String |
getSignature(IEObjectDescription desc) |
protected java.lang.String |
getSignature(IIdentifiableElementDescription desc) |
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 boolean |
isAliased(IEObjectDescription desc) |
protected void |
populateFromParent(java.util.List<IEObjectDescription> allElements,
java.util.Map<QualifiedName,java.util.List<IEObjectDescription>> allElementsByName) |
protected void |
recordDescription(IEObjectDescription element,
java.util.Map<java.lang.String,IEObjectDescription> result) |
protected void |
recordDescription(IIdentifiableElementDescription desc,
java.util.Map<java.lang.String,IEObjectDescription> result) |
protected void |
recordDescription(java.lang.String signature,
IEObjectDescription element,
java.util.Map<java.lang.String,IEObjectDescription> result) |
public ExpressionScope.Scope(IScope delegate, ITypeReferenceOwner owner)
public 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
.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
.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> getAllElements()
IScope
UnsupportedOperationException
if the scope cannot be enumerated.getAllElements
in interface IScope
null
.protected void ensureInitialized()
protected void populateFromParent(java.util.List<IEObjectDescription> allElements, java.util.Map<QualifiedName,java.util.List<IEObjectDescription>> allElementsByName)
protected void recordDescription(IEObjectDescription element, java.util.Map<java.lang.String,IEObjectDescription> result)
protected void recordDescription(java.lang.String signature, IEObjectDescription element, java.util.Map<java.lang.String,IEObjectDescription> result)
protected boolean isAliased(IEObjectDescription desc)
protected void recordDescription(IIdentifiableElementDescription desc, java.util.Map<java.lang.String,IEObjectDescription> result)
protected LightweightTypeReference getFirstParameterType(IIdentifiableElementDescription candidate)
protected LightweightTypeReference getParameterType(JvmFormalParameter p)
protected java.util.List<IIdentifiableElementDescription> getFilteredExtensionDescriptions(java.util.Map<java.lang.String,java.util.List<IIdentifiableElementDescription>> extensionSignatures)
protected java.lang.String getExtensionSignature(IIdentifiableElementDescription desc)
protected java.lang.String getSignature(IEObjectDescription desc)
protected java.lang.String getSignature(IIdentifiableElementDescription desc)
protected void appendParameters(JvmExecutable executable, java.lang.StringBuilder result, boolean extension)