public class OperationFilter extends AbstractOperationFilter
| Modifier and Type | Field and Description |
|---|---|
protected int |
accumulators |
protected java.util.List<NavigatingArgCS> |
csArguments |
protected int |
expressions |
protected int |
iterators |
sourceType| Constructor and Description |
|---|
OperationFilter(MetaModelManager metaModelManager,
Type sourceType,
InvocationExpCS csNavigatingExp)
Deprecated.
|
OperationFilter(Type sourceType,
InvocationExpCS csNavigatingExp) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareMatches(MetaModelManager metaModelManager,
DomainElement match1,
java.util.Map<TemplateParameter,ParameterableElement> referenceBindings,
DomainElement match2,
java.util.Map<TemplateParameter,ParameterableElement> candidateBindings)
Return -ve if match1 is inferior to match2, +ve if match2 is inferior to match1, or
zero if both matches are of equal validity.
|
protected OCLExpression |
getExpressionArgument(int index) |
protected java.util.Map<TemplateParameter,ParameterableElement> |
getIterationBindings(MetaModelManager metaModelManager,
Iteration candidateIteration) |
protected java.util.Map<TemplateParameter,ParameterableElement> |
getOperationBindings(MetaModelManager metaModelManager,
Operation candidateOperation) |
protected void |
installBindings(EnvironmentView environmentView,
DomainElement eObject,
java.util.Map<TemplateParameter,ParameterableElement> bindings) |
boolean |
matches(EnvironmentView environmentView,
DomainElement eObject)
Return true if the filter accepts eObject as a candidate for
inclusion in the EnvironmentView.
|
@NonNull protected final java.util.List<NavigatingArgCS> csArguments
protected final int iterators
protected final int accumulators
protected final int expressions
@Deprecated
public OperationFilter(@NonNull
MetaModelManager metaModelManager,
@Nullable
Type sourceType,
@NonNull
InvocationExpCS csNavigatingExp)
public OperationFilter(@Nullable
Type sourceType,
@NonNull
InvocationExpCS csNavigatingExp)
public int compareMatches(@NonNull
MetaModelManager metaModelManager,
@NonNull
DomainElement match1,
@Nullable
java.util.Map<TemplateParameter,ParameterableElement> referenceBindings,
@NonNull
DomainElement match2,
@Nullable
java.util.Map<TemplateParameter,ParameterableElement> candidateBindings)
ScopeFiltercompareMatches in interface ScopeFiltercompareMatches in class AbstractOperationFilter@Nullable protected OCLExpression getExpressionArgument(int index)
@Nullable protected java.util.Map<TemplateParameter,ParameterableElement> getIterationBindings(@NonNull MetaModelManager metaModelManager, @NonNull Iteration candidateIteration)
@Nullable protected java.util.Map<TemplateParameter,ParameterableElement> getOperationBindings(@NonNull MetaModelManager metaModelManager, @NonNull Operation candidateOperation)
getOperationBindings in class AbstractOperationFilterprotected void installBindings(@NonNull
EnvironmentView environmentView,
@NonNull
DomainElement eObject,
@Nullable
java.util.Map<TemplateParameter,ParameterableElement> bindings)
installBindings in class AbstractOperationFilterpublic boolean matches(@NonNull
EnvironmentView environmentView,
@NonNull
DomainElement eObject)
ScopeFilter