blob: fc073bd8457d2b2fa4ee9758a12d9c8ab3aa8352 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
package org.eclipse.papyrus.uml.alf.syntax.expressions;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.papyrus.uml.alf.syntax.common.AssignedSource;
import org.eclipse.papyrus.uml.alf.syntax.common.ElementReference;
public class IncrementOrDecrementExpression extends Expression {
// Synthesized Properties
public boolean isPrefix ;
public LeftHandSide operand ;
// Derived Properties
public AssignedSource assignment ;
public Expression expression ;
public ElementReference feature ;
public boolean isDataValueUpdate ;
public boolean isFeature ;
public boolean isIndexed ;
// Constraints
/*
* If the operand of an increment or decrement expression is a name, then the assignment for the
* expression is a new assigned source for the name with the expression as the source.
*/
public void checkIncrementOrDecrementExpressionAssignment() {
}
/*
* The assignments before the operand of an increment or decrement expression are the same as those
* before the increment or decrement expression.
*/
public void checkIncrementOrDecrementExpressionAssignmentsBefore() {
}
/*
* The effective expression for the operand of an increment or decrement expression is the operand treated
* as a name expression, property access expression or sequence access expression, as appropriate for
* evaluation to obtain the original value to be updated.
*/
public void checkIncrementOrDecrementExpressionExpressionDerivation() {
}
/*
* If the operand of an increment or decrement expression is a feature, then the referent for the operand.
*/
public void checkIncrementOrDecrementExpressionFeature() {
}
/*
* An increment or decrement expression is a data value update if its operand is an attribute of a data value
* held in a local name or parameter.
*/
public void checkIncrementOrDecrementExpressionIsDataValueUpdate() {
}
/*
* An increment or decrement expression has a feature as its operand if the operand is a kind of
* FeatureLeftHandSide.
*/
public void checkIncrementOrDecrementExpressionIsFeatureDerivation() {
}
/*
* An increment or decrement expression is indexed if its operand is indexed.
*/
public void checkIncrementOrDecrementExpressionIsIndexedDerivation() {
}
/*
* An increment or decrement expression has the same multiplicity lower bound as its operand expression.
*/
public void checkIncrementOrDecrementExpressionLowerDerivation() {
}
/*
* The operand expression must have type Integer and a multiplicity upper bound of 1.
*/
public void checkIncrementOrDecrementExpressionOperand() {
}
/*
* An increment or decrement expression has type Integer.
*/
public void checkIncrementOrDecrementExpressionTypeDerivation() {
}
/*
* An increment or decrement expression has a multiplicity upper bound of 1.
*/
public void checkIncrementOrDecrementExpressionUpperDerivation() {
}
// Helper Operations
/*
* The assignments after an increment and decrement expression include all those after its operand
* expression. Further, if the operand expression, considered as a left hand side, is a local name, then this is
* reassigned.
*/
public List<AssignedSource> updateAssignments() {
return new ArrayList<AssignedSource>() ;
}
}
|