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

All Known Implementing Classes:
AbstractOperationFilter, BinaryOperationFilter, CompleteOCLCSContainmentVisitor.OperationDeclScopeFilter, 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(MetaModelManager metaModelManager, java.lang.Object match1, java.util.Map<TemplateParameter,ParameterableElement> bindings1, java.lang.Object 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, java.lang.Object object)
          Return true if the filter accepts eObject as a candidate for inclusion in the EnvironmentView.
 

Method Detail

compareMatches

int compareMatches(@NonNull
                   MetaModelManager metaModelManager,
                   @NonNull
                   java.lang.Object match1,
                   @Nullable
                   java.util.Map<TemplateParameter,ParameterableElement> bindings1,
                   @NonNull
                   java.lang.Object match2,
                   @Nullable
                   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(@NonNull
                EnvironmentView environmentView,
                @NonNull
                java.lang.Object object)
Return true if the filter accepts eObject as a candidate for inclusion in the EnvironmentView.

Parameters:
eObject -