public class BestMatchingJvmFeatureScope extends java.lang.Object implements IScope
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.EObject |
context |
protected org.eclipse.emf.ecore.EReference |
reference |
Constructor and Description |
---|
BestMatchingJvmFeatureScope(TypeConformanceComputer conformanceComputer,
org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference ref,
IScope delegate,
FeatureCallChecker featureCallChecker,
IRawTypeHelper rawTypeHelper) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<IEObjectDescription> |
getAllElements()
Obtain all elements from the scope.
|
protected JvmFeatureDescription |
getBestConformanceMatch(JvmFeatureDescription featureDescriptionA,
JvmFeatureDescription featureDescriptionB) |
protected IEObjectDescription |
getBestMatch(IEObjectDescription a,
IEObjectDescription b) |
protected IEObjectDescription |
getBestMatch(java.lang.Iterable<IEObjectDescription> iterable) |
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 IValidatedEObjectDescription |
selectByIssueCode(IValidatedEObjectDescription descA,
IValidatedEObjectDescription descB) |
protected IEObjectDescription |
setImplicitReceiverAndIsValid(IEObjectDescription bestMatch) |
java.lang.String |
toString() |
protected final org.eclipse.emf.ecore.EObject context
protected final org.eclipse.emf.ecore.EReference reference
public BestMatchingJvmFeatureScope(TypeConformanceComputer conformanceComputer, org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference ref, IScope delegate, FeatureCallChecker featureCallChecker, IRawTypeHelper rawTypeHelper)
public java.lang.Iterable<IEObjectDescription> getAllElements()
IScope
UnsupportedOperationException
if the scope cannot be enumerated.getAllElements
in interface IScope
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> 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 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
.protected IEObjectDescription setImplicitReceiverAndIsValid(IEObjectDescription bestMatch)
protected IEObjectDescription getBestMatch(java.lang.Iterable<IEObjectDescription> iterable)
protected IEObjectDescription getBestMatch(IEObjectDescription a, IEObjectDescription b)
protected IValidatedEObjectDescription selectByIssueCode(IValidatedEObjectDescription descA, IValidatedEObjectDescription descB)
protected JvmFeatureDescription getBestConformanceMatch(JvmFeatureDescription featureDescriptionA, JvmFeatureDescription featureDescriptionB)
public java.lang.String toString()
toString
in class java.lang.Object