|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
MultiDefinition
The public interface to a multiple definition AG element.
Example:def [x, y] := [1, 2]
By using splicing in the left-hand expression, this can be
used to split up tables: def [x, @y] := [1, 2, 3, 4]
| Method Summary | |
|---|---|
Table |
parameters()
The left-hand side of the definition must be a literal table. |
Expression |
valueExpression()
The right-hand side of the definition may be any valid AmbientTalk expression that evaluates to a native table Example: `{ def [ x, y ] := [ y, x ] }.statements[1].valueExpression == `[y, x] |
| Methods inherited from interface edu.vub.at.objects.AbstractGrammar |
|---|
freeVariables |
| Methods inherited from interface edu.vub.at.objects.Object |
|---|
super |
| Method Detail |
|---|
Table parameters()
`{ def [ x, y ] := [ y, x ] }.statements[1].parameters == `[x, y]
Expression valueExpression()
`{ def [ x, y ] := [ y, x ] }.statements[1].valueExpression == `[y, x]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||