Class FrozenTypeDefResolver
- java.lang.Object
-
- net.ssehub.easy.varModel.model.rewrite.modifier.AbstractFrozenChecker<DerivedDatatype>
-
- net.ssehub.easy.varModel.model.rewrite.modifier.FrozenTypeDefResolver
-
- All Implemented Interfaces:
IModelElementFilter<DerivedDatatype>
public class FrozenTypeDefResolver extends AbstractFrozenChecker<DerivedDatatype>
Checks whether all instances of a givenDerivedDatatypeare frozen and will remove all constraints, if all instances are frozen or if none exist.- Author:
- El-Sharkawy
-
-
Constructor Summary
Constructors Constructor Description FrozenTypeDefResolver(Configuration config)Default constructor of this class.
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class net.ssehub.easy.varModel.model.rewrite.modifier.AbstractFrozenChecker
allInstancesAreFrozen, constraintIsFrozen, getConfiguration, getVariable
-
-
-
-
Constructor Detail
-
FrozenTypeDefResolver
public FrozenTypeDefResolver(Configuration config)
Default constructor of this class.- Parameters:
config- A already initializedConfiguration.
-
-
Method Detail
-
getModifyingModelClass
public java.lang.Class<? extends ContainableModelElement> 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 null if the element should be deleted.
-
-