Class ExpressionVersionRestriction
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.expressions.ExpressionVersionRestriction
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.ExpressionVersionRestriction
-
- All Implemented Interfaces:
IVersionRestriction
public class ExpressionVersionRestriction extends ExpressionVersionRestriction
A version restriction based on VIL expressions.- Author:
- Holger Eichelberger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.ssehub.easy.basics.modelManagement.IVersionRestriction
IVersionRestriction.IVariableMapper
-
-
Constructor Summary
Constructors Constructor Description ExpressionVersionRestriction(Expression expr, VariableDeclaration versionVariable)Creates a new expression version restriction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IVersionRestrictioncopy(IModel model)Copies this version restriction for the givenmodel.IVersionRestrictioncopy(IVersionRestriction.IVariableMapper mapper)Copies this version restriction for the given using the givenmapper.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.expressions.ExpressionVersionRestriction
createSingleRestriction, emit, evaluate, getExpression, getVersionVariable, toSpecification
-
-
-
-
Constructor Detail
-
ExpressionVersionRestriction
public ExpressionVersionRestriction(Expression expr, VariableDeclaration versionVariable) throws RestrictionEvaluationException
Creates a new expression version restriction.- Parameters:
expr- the version restriction expressionversionVariable- the variable representing the actual version of the project to be imported- Throws:
RestrictionEvaluationException- in case of type compliance problems
-
-
Method Detail
-
copy
public IVersionRestriction copy(IModel model) throws RestrictionEvaluationException
Description copied from interface:IVersionRestrictionCopies this version restriction for the givenmodel.- Parameters:
model- the model to copy/instantiate this version restriction for- Returns:
- the copied version restriction (may be null if no restrictions needed to be copied)
- Throws:
RestrictionEvaluationException- in case of evaluation/type problems
-
copy
public IVersionRestriction copy(IVersionRestriction.IVariableMapper mapper) throws RestrictionEvaluationException
Description copied from interface:IVersionRestrictionCopies this version restriction for the given using the givenmapper.- Parameters:
mapper- the variable mapper- Returns:
- the copied version restriction (may be null if no restrictions needed to be copied)
- Throws:
RestrictionEvaluationException- in case of evaluation/type problems
-
-