1212| Relation | Origin | Opposite | Type | Comment |
1313|---|
1414| `condition` | `FASTTConditionalStatement` | `parentConditionalStatement` | `FASTTExpression` | The boolean condition tested|
15- | `thenBlock` | `FASTPyIfStatement` | `ifStatementOwner` | `FASTPyBlock` | |
15+ | `elifClauses` | `FASTPyIfStatement` | `ifStatementOwner` | `FASTPyElifClause` | |
16+ | `elseClause` | `FASTPyIfStatement` | `ifStatementOwner` | `FASTPyElseClause` | |
17+ | `thenClause` | `FASTPyIfStatement` | `ifStatementOwner` | `FASTPyThenClause` | |
1618
1719
1820## Properties
@@ -30,7 +32,9 @@ Class {
3032 #traits : 'FASTTConditionalStatement + FASTTStatement',
3133 #classTraits : 'FASTTConditionalStatement classTrait + FASTTStatement classTrait',
3234 #instVars : [
33- '#thenBlock => FMOne type: #FASTPyBlock opposite: #ifStatementOwner'
35+ '#elifClauses => FMMany type: #FASTPyElifClause opposite: #ifStatementOwner',
36+ '#elseClause => FMOne type: #FASTPyElseClause opposite: #ifStatementOwner',
37+ '#thenClause => FMOne type: #FASTPyThenClause opposite: #ifStatementOwner'
3438 ],
3539 #category : 'FAST-Python-Model-Entities',
3640 #package : 'FAST-Python-Model',
@@ -46,24 +50,75 @@ FASTPyIfStatement class >> annotation [
4650 ^ self
4751]
4852
53+ { #category : 'adding' }
54+ FASTPyIfStatement >> addElifClause: anObject [
55+ <generated>
56+ ^ self elifClauses add: anObject
57+ ]
58+
59+ { #category : 'accessing' }
60+ FASTPyIfStatement >> elifClauses [
61+ "Relation named: #elifClauses type: #FASTPyElifClause opposite: #ifStatementOwner"
62+
63+ <generated>
64+ <derived>
65+ ^ elifClauses
66+ ]
67+
68+ { #category : 'accessing' }
69+ FASTPyIfStatement >> elifClauses: anObject [
70+
71+ <generated>
72+ elifClauses value: anObject
73+ ]
74+
75+ { #category : 'navigation' }
76+ FASTPyIfStatement >> elifClausesGroup [
77+ <generated>
78+ <navigation: 'ElifClauses'>
79+ ^ MooseSpecializedGroup withAll: self elifClauses asSet
80+ ]
81+
82+ { #category : 'accessing' }
83+ FASTPyIfStatement >> elseClause [
84+ "Relation named: #elseClause type: #FASTPyElseClause opposite: #ifStatementOwner"
85+
86+ <generated>
87+ ^ elseClause
88+ ]
89+
90+ { #category : 'accessing' }
91+ FASTPyIfStatement >> elseClause: anObject [
92+
93+ <generated>
94+ elseClause := anObject
95+ ]
96+
97+ { #category : 'navigation' }
98+ FASTPyIfStatement >> elseClauseGroup [
99+ <generated>
100+ <navigation: 'ElseClause'>
101+ ^ MooseSpecializedGroup with: self elseClause
102+ ]
103+
49104{ #category : 'accessing' }
50- FASTPyIfStatement >> thenBlock [
51- "Relation named: #thenBlock type: #FASTPyBlock opposite: #ifStatementOwner"
105+ FASTPyIfStatement >> thenClause [
106+ "Relation named: #thenClause type: #FASTPyThenClause opposite: #ifStatementOwner"
52107
53108 <generated>
54- ^ thenBlock
109+ ^ thenClause
55110]
56111
57112{ #category : 'accessing' }
58- FASTPyIfStatement >> thenBlock : anObject [
113+ FASTPyIfStatement >> thenClause : anObject [
59114
60115 <generated>
61- thenBlock := anObject
116+ thenClause := anObject
62117]
63118
64119{ #category : 'navigation' }
65- FASTPyIfStatement >> thenBlockGroup [
120+ FASTPyIfStatement >> thenClauseGroup [
66121 <generated>
67- <navigation: 'ThenBlock '>
68- ^ MooseSpecializedGroup with: self thenBlock
122+ <navigation: 'ThenClause '>
123+ ^ MooseSpecializedGroup with: self thenClause
69124]
0 commit comments