Class IterLet
java.lang.Object
net.ssehub.easy.varModel.cst.ConstraintSyntaxTree
net.ssehub.easy.varModel.cst.Let
net.ssehub.easy.varModel.cstEvaluation.IterLet
- All Implemented Interfaces:
IAttributeAccess
Implements a specific expression for defining local variables with variable initialization
expressions in iterator expressions. Therefore, this expression may override the
initialization expression of the "in" variable.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIterLet(DecisionVariableDeclaration var, ConstraintSyntaxTree init, ConstraintSyntaxTree inExpr) Creates an iterator let-expression. -
Method Summary
Modifier and TypeMethodDescriptionReturns the initialization expression.Methods inherited from class net.ssehub.easy.varModel.cst.Let
accept, equals, getInExpression, getVariable, hashCode, inferDatatypeMethods inherited from class net.ssehub.easy.varModel.cst.ConstraintSyntaxTree
getAttribute, getAttribute, getAttributesCount, getContainedType, getName, getParent, isSemanticallyEqual
-
Field Details
-
init
-
-
Constructor Details
-
IterLet
public IterLet(DecisionVariableDeclaration var, ConstraintSyntaxTree init, ConstraintSyntaxTree inExpr) Creates an iterator let-expression.- Parameters:
var- the variable to be definedinit- the initialization expression (may be null, then the default expression ofvartakes precedence)inExpr- the expressionvaris used in
-
-
Method Details
-
getInitExpression
Description copied from class:LetReturns the initialization expression.- Overrides:
getInitExpressionin classLet- Returns:
- the initialization expression
-