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 aProject, while creating a copy using theProjectRewriteVisitor.- Author:
- El-Sharkawy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<? extends ContainableModelElement>getModifyingModelClass()Specification for which kind of classes this may be applied to.ContainableModelElementhandleModelElement(ContainableModelElement element, RewriteContext context)Specification how to handleContainableModelElements.
-
-
-
Method Detail
-
getModifyingModelClass
java.lang.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
ContainableModelElement handleModelElement(ContainableModelElement element, RewriteContext context)
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 null if the element should be deleted.
-
-