Class FrozenConstraintVarFilter
java.lang.Object
net.ssehub.easy.varModel.model.rewrite.modifier.AbstractFrozenChecker<DecisionVariableDeclaration>
net.ssehub.easy.varModel.model.rewrite.modifier.FrozenConstraintVarFilter
- All Implemented Interfaces:
IModelElementFilter<DecisionVariableDeclaration>
Removes frozen
ConstraintType variables if they are only pointing to frozen variable.- Author:
- El-Sharkawy
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor of this class. -
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.Methods inherited from class net.ssehub.easy.varModel.model.rewrite.modifier.AbstractFrozenChecker
allInstancesAreFrozen, constraintIsFrozen, getConfiguration, getVariable
-
Constructor Details
-
FrozenConstraintVarFilter
Default constructor of this class.- Parameters:
config- A already initializedConfiguration, needed for checking whether an arbitrary variable is already frozen.
-
-
Method Details
-
getModifyingModelClass
Description copied from interface:IModelElementFilterSpecification for which kind of classes this may be applied to.- Returns:
- The
ContainableModelElements which shall be modified by this class.
-
handleModelElement
public ContainableModelElement handleModelElement(ContainableModelElement element, RewriteContext context) Description copied from interface:IModelElementFilterSpecification 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.
-