Interface IModelElementFilter<M extends ContainableModelElement>
- Type Parameters:
M- Type ofContainableModelElements, which shall be handled by this class.
- All Known Implementing Classes:
AbstractFrozenChecker,DeclarationNameFilter,FrozenCompoundConstraintsOmitter,FrozenConstraintsFilter,FrozenConstraintVarFilter,FrozenTypeDefResolver,ModelElementFilter
public interface IModelElementFilter<M extends ContainableModelElement>
Optional Rule how to handle elements of a
Project, while creating a
copy using the ProjectRewriteVisitor.- Author:
- El-Sharkawy
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends ContainableModelElement> Specification for which kind of classes this may be applied to.handleModelElement(ContainableModelElement element, RewriteContext context) Specification how to handleContainableModelElements.
-
Method Details
-
getModifyingModelClass
Class<? extends ContainableModelElement> getModifyingModelClass()Specification for which kind of classes this may be applied to.- Returns:
- The
ContainableModelElements which shall be modified by this class.
-
handleModelElement
Specification how to handleContainableModelElements.- Parameters:
element- AContainableModelElementwhich may be modified by this class.context- Knowledge of the current translation, comes from theProjectRewriteVisitor.- Returns:
- The modified element. Maybe the same instance as passed as parameter (if nothing should be changed) or
nullif the element should be deleted.
-