org.eclipse.ocl.examples.xtext.completeocl.scoping
Class OperationContextFilter
java.lang.Object
org.eclipse.ocl.examples.xtext.completeocl.scoping.OperationContextFilter
- All Implemented Interfaces:
- EnvironmentView.Filter
public class OperationContextFilter
- extends java.lang.Object
- implements EnvironmentView.Filter
Copyright (c) 2011 E.D.Willink and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
E.D.Willink - initial API and implementation
$Id: OperationContextFilter.java,v 1.2 2011/04/25 19:39:58 ewillink Exp $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OperationContextFilter
public OperationContextFilter(OperationContextDeclCS csOperationContext)
compareMatches
public 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)
- Description copied from interface:
EnvironmentView.Filter
- Return -ve if match1 is inferior to match2, +ve if match2 is inferior to match1, or
zero if both matches are of equal validity.
- Specified by:
compareMatches
in interface EnvironmentView.Filter
matches
public boolean matches(EnvironmentView environmentView,
Type forType,
org.eclipse.emf.ecore.EObject eObject)
- Description copied from interface:
EnvironmentView.Filter
- Return true if the filter accepts eObject as a candidate for
inclusion in the EnvironmentView.
- Specified by:
matches
in interface EnvironmentView.Filter