blob: 3ef3309ec855c370ec278f6275b75ae5f7faed7a (
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
|
package org.eclipse.papyrus.alf.syntax.statements;
import java.util.List;
import org.eclipse.papyrus.alf.syntax.common.AssignedSource;
import org.eclipse.papyrus.alf.syntax.common.DocumentedElement;
public abstract class Statement extends DocumentedElement{
// Synthesized Properties
public List<Annotation> annotation ;
// Derived Properties
public List<AssignedSource> assignmentAfter ;
public List<AssignedSource> assignmentBefore ;
public Statement enclosingStatement ;
public boolean isIsolated ;
// Constraints
/*
* All the annotations of a statement must be allowed, as given by the annotationAllowed operation for the
* statement.
*/
public void checkStatementAnnotationsAllowed() {
}
/*
* A statement is isolated if it has an @isolated annotation.
*/
public void checkStatementIsIsolatedDerivation() {
}
/*
* No name may be assigned more than once before or after a statement.
*/
public void checkStatementUniqueAssignments() {
}
//Helper Operations
/*
* Returns true if the given annotation is allowed for this kind of statement. By default, only an @isolated
* annotation is allowed, with no arguments. This operation is redefined only in subclasses of Statement for
* kinds of statements that allow different annotations than this default.
*/
public boolean annotationAllowed(Annotation annotation) {
return false ;
}
}
|