org.eclipse.ocl.examples.pivot.scoping
Interface ScopeFilter

All Known Implementing Classes:
AbstractOperationFilter, BinaryOperationFilter, CompleteOCLContainmentVisitor.OperationDeclScopeFilter, ContextCSAttribution.NoImplicitProperties, ImplicitCollectFilter, ImplicitCollectionFilter, OperationContextFilter, OperationFilter, UnaryOperationFilter

public interface ScopeFilter

A ScopeFilter is initially used to reject unwanted name contributions from a scope and once all candidate names have been identified, is used again to select a best match from ambiguous contributions.


Method Summary
 int compareMatches(org.eclipse.emf.ecore.EObject match1, java.util.Map<TemplateParameter,ParameterableElement> bindings1, org.eclipse.emf.ecore.EObject match2, java.util.Map<TemplateParameter,ParameterableElement> bindings2)
          Return -ve if match1 is inferior to match2, +ve if match2 is inferior to match1, or zero if both matches are of equal validity.
 boolean matches(EnvironmentView environmentView, Type forType, org.eclipse.emf.ecore.EObject eObject)
          Return true if the filter accepts eObject as a candidate for inclusion in the EnvironmentView.
 

Method Detail

compareMatches

int compareMatches(org.eclipse.emf.ecore.EObject match1,
                   java.util.Map<TemplateParameter,ParameterableElement> bindings1,
                   org.eclipse.emf.ecore.EObject match2,
                   java.util.Map<TemplateParameter,ParameterableElement> bindings2)
Return -ve if match1 is inferior to match2, +ve if match2 is inferior to match1, or zero if both matches are of equal validity.


matches

boolean matches(EnvironmentView environmentView,
                Type forType,
                org.eclipse.emf.ecore.EObject eObject)
Return true if the filter accepts eObject as a candidate for inclusion in the EnvironmentView.

Parameters:
eObject -