-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFASTPyComprehension.class.st
More file actions
103 lines (81 loc) · 2.48 KB
/
FASTPyComprehension.class.st
File metadata and controls
103 lines (81 loc) · 2.48 KB
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
"
I am an abstract class for comprehensions. Comprehensions are a structure in python to generate some collections or a generator.
## Relations
======================
### Parents
| Relation | Origin | Opposite | Type | Comment |
|---|
| `parentSplat` | `FASTPyTSplatExpression` | `expression` | `FASTPySplat` | |
### Children
| Relation | Origin | Opposite | Type | Comment |
|---|
| `body` | `FASTPyComprehension` | `parentComprehensionBody` | `FASTPyExpression` | |
| `conditions` | `FASTPyComprehension` | `parentComprehensionCondition` | `FASTPyExpression` | |
| `forClauses` | `FASTPyComprehension` | `parentComprehensionForClause` | `FASTPyExpression` | |
"
Class {
#name : 'FASTPyComprehension',
#superclass : 'FASTPyExpression',
#traits : 'FASTPyTSplatExpression',
#classTraits : 'FASTPyTSplatExpression classTrait',
#instVars : [
'#body => FMOne type: #FASTPyExpression opposite: #parentComprehensionBody',
'#conditions => FMMany type: #FASTPyExpression opposite: #parentComprehensionCondition',
'#forClauses => FMMany type: #FASTPyExpression opposite: #parentComprehensionForClause'
],
#category : 'FAST-Python-Model-Entities',
#package : 'FAST-Python-Model',
#tag : 'Entities'
}
{ #category : 'meta' }
FASTPyComprehension class >> annotation [
<FMClass: #Comprehension super: #FASTPyExpression>
<package: #'FAST-Python-Model'>
<generated>
^ self
]
{ #category : 'adding' }
FASTPyComprehension >> addCondition: anObject [
<generated>
^ self conditions add: anObject
]
{ #category : 'adding' }
FASTPyComprehension >> addForClause: anObject [
<generated>
^ self forClauses add: anObject
]
{ #category : 'accessing' }
FASTPyComprehension >> body [
"Relation named: #body type: #FASTPyExpression opposite: #parentComprehensionBody"
<generated>
^ body
]
{ #category : 'accessing' }
FASTPyComprehension >> body: anObject [
<generated>
body := anObject
]
{ #category : 'accessing' }
FASTPyComprehension >> conditions [
"Relation named: #conditions type: #FASTPyExpression opposite: #parentComprehensionCondition"
<generated>
<derived>
^ conditions
]
{ #category : 'accessing' }
FASTPyComprehension >> conditions: anObject [
<generated>
conditions value: anObject
]
{ #category : 'accessing' }
FASTPyComprehension >> forClauses [
"Relation named: #forClauses type: #FASTPyExpression opposite: #parentComprehensionForClause"
<generated>
<derived>
^ forClauses
]
{ #category : 'accessing' }
FASTPyComprehension >> forClauses: anObject [
<generated>
forClauses value: anObject
]