public static final class Stmt.Assign extends wybs.lang.SyntacticElement.Impl implements Stmt
lhs = rhs.
Here, the rhs is any expression, whilst the lhs
must be an LVal --- that is, an expression permitted on the
left-side of an assignment. The following illustrates different possible
assignment statements:
x = y // variable assignment x.f = y // field assignment x[i] = y // list assignment x[i].f = y // compound assignmentThe last assignment here illustrates that the left-hand side of an assignment can be arbitrarily complex, involving nested assignments into lists and records.
Stmt.Assert, Stmt.Assign, Stmt.Assume, Stmt.Break, Stmt.Case, Stmt.Continue, Stmt.Debug, Stmt.DoWhile, Stmt.Fail, Stmt.IfElse, Stmt.NamedBlock, Stmt.Return, Stmt.Skip, Stmt.Switch, Stmt.VariableDeclaration, Stmt.While| Constructor and Description |
|---|
Assign(List<Expr.LVal> lvals,
List<Expr> rvals,
wybs.lang.Attribute... attributes)
Create an assignment from a given sequence of lvals and expressions on the right-hand side.
|
Assign(List<Expr.LVal> lvals,
List<Expr> rvals,
Collection<wybs.lang.Attribute> attributes)
Create an assignment from a given sequence of lvals and expressions on the right-hand side.
|
public Assign(List<Expr.LVal> lvals, List<Expr> rvals, wybs.lang.Attribute... attributes)
lvals - Sequence of one or more lval expressions representing the
left-hand sidervals - Sequence of one or more expressions representing the
right-hand sideattributes - public Assign(List<Expr.LVal> lvals, List<Expr> rvals, Collection<wybs.lang.Attribute> attributes)
lvals - Sequence of one or more lval expressions representing the
left-hand sidervals - Sequence of one or more expressions representing the
right-hand sideattributes - Copyright © 2017. All rights reserved.