EMMA Coverage Report (generated Sat Dec 08 18:10:06 GMT 2007)
[all classes][uk.co.zonetora.fj.ast.node]

COVERAGE SUMMARY FOR SOURCE FILE [AThisFieldAssig.java]

nameclass, %method, %block, %line, %
AThisFieldAssig.java0%   (0/1)0%   (0/19)0%   (0/358)0%   (0/118)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AThisFieldAssig0%   (0/1)0%   (0/19)0%   (0/358)0%   (0/118)
AThisFieldAssig (): void 0%   (0/1)0%   (0/3)0%   (0/2)
AThisFieldAssig (TThis, TPeriod, TIdentifier, TEq, TIdentifier, TSemicolon): ... 0%   (0/1)0%   (0/21)0%   (0/8)
apply (Switch): void 0%   (0/1)0%   (0/5)0%   (0/2)
clone (): Object 0%   (0/1)0%   (0/34)0%   (0/7)
getEq (): TEq 0%   (0/1)0%   (0/3)0%   (0/1)
getLeftField (): TIdentifier 0%   (0/1)0%   (0/3)0%   (0/1)
getPeriod (): TPeriod 0%   (0/1)0%   (0/3)0%   (0/1)
getRightField (): TIdentifier 0%   (0/1)0%   (0/3)0%   (0/1)
getSemicolon (): TSemicolon 0%   (0/1)0%   (0/3)0%   (0/1)
getThis (): TThis 0%   (0/1)0%   (0/3)0%   (0/1)
removeChild (Node): void 0%   (0/1)0%   (0/49)0%   (0/19)
replaceChild (Node, Node): void 0%   (0/1)0%   (0/55)0%   (0/19)
setEq (TEq): void 0%   (0/1)0%   (0/23)0%   (0/8)
setLeftField (TIdentifier): void 0%   (0/1)0%   (0/23)0%   (0/8)
setPeriod (TPeriod): void 0%   (0/1)0%   (0/23)0%   (0/8)
setRightField (TIdentifier): void 0%   (0/1)0%   (0/23)0%   (0/8)
setSemicolon (TSemicolon): void 0%   (0/1)0%   (0/23)0%   (0/8)
setThis (TThis): void 0%   (0/1)0%   (0/23)0%   (0/8)
toString (): String 0%   (0/1)0%   (0/35)0%   (0/7)

1/* This file was generated by SableCC (http://www.sablecc.org/). */
2 
3package uk.co.zonetora.fj.ast.node;
4 
5import java.util.*;
6import uk.co.zonetora.fj.ast.analysis.*;
7 
8public final class AThisFieldAssig extends PThisFieldAssig
9{
10    private TThis _this_;
11    private TPeriod _period_;
12    private TIdentifier _leftField_;
13    private TEq _eq_;
14    private TIdentifier _rightField_;
15    private TSemicolon _semicolon_;
16 
17    public AThisFieldAssig()
18    {
19    }
20 
21    public AThisFieldAssig(
22        TThis _this_,
23        TPeriod _period_,
24        TIdentifier _leftField_,
25        TEq _eq_,
26        TIdentifier _rightField_,
27        TSemicolon _semicolon_)
28    {
29        setThis(_this_);
30 
31        setPeriod(_period_);
32 
33        setLeftField(_leftField_);
34 
35        setEq(_eq_);
36 
37        setRightField(_rightField_);
38 
39        setSemicolon(_semicolon_);
40 
41    }
42    public Object clone()
43    {
44        return new AThisFieldAssig(
45            (TThis) cloneNode(_this_),
46            (TPeriod) cloneNode(_period_),
47            (TIdentifier) cloneNode(_leftField_),
48            (TEq) cloneNode(_eq_),
49            (TIdentifier) cloneNode(_rightField_),
50            (TSemicolon) cloneNode(_semicolon_));
51    }
52 
53    public void apply(Switch sw)
54    {
55        ((Analysis) sw).caseAThisFieldAssig(this);
56    }
57 
58    public TThis getThis()
59    {
60        return _this_;
61    }
62 
63    public void setThis(TThis node)
64    {
65        if(_this_ != null)
66        {
67            _this_.parent(null);
68        }
69 
70        if(node != null)
71        {
72            if(node.parent() != null)
73            {
74                node.parent().removeChild(node);
75            }
76 
77            node.parent(this);
78        }
79 
80        _this_ = node;
81    }
82 
83    public TPeriod getPeriod()
84    {
85        return _period_;
86    }
87 
88    public void setPeriod(TPeriod node)
89    {
90        if(_period_ != null)
91        {
92            _period_.parent(null);
93        }
94 
95        if(node != null)
96        {
97            if(node.parent() != null)
98            {
99                node.parent().removeChild(node);
100            }
101 
102            node.parent(this);
103        }
104 
105        _period_ = node;
106    }
107 
108    public TIdentifier getLeftField()
109    {
110        return _leftField_;
111    }
112 
113    public void setLeftField(TIdentifier node)
114    {
115        if(_leftField_ != null)
116        {
117            _leftField_.parent(null);
118        }
119 
120        if(node != null)
121        {
122            if(node.parent() != null)
123            {
124                node.parent().removeChild(node);
125            }
126 
127            node.parent(this);
128        }
129 
130        _leftField_ = node;
131    }
132 
133    public TEq getEq()
134    {
135        return _eq_;
136    }
137 
138    public void setEq(TEq node)
139    {
140        if(_eq_ != null)
141        {
142            _eq_.parent(null);
143        }
144 
145        if(node != null)
146        {
147            if(node.parent() != null)
148            {
149                node.parent().removeChild(node);
150            }
151 
152            node.parent(this);
153        }
154 
155        _eq_ = node;
156    }
157 
158    public TIdentifier getRightField()
159    {
160        return _rightField_;
161    }
162 
163    public void setRightField(TIdentifier node)
164    {
165        if(_rightField_ != null)
166        {
167            _rightField_.parent(null);
168        }
169 
170        if(node != null)
171        {
172            if(node.parent() != null)
173            {
174                node.parent().removeChild(node);
175            }
176 
177            node.parent(this);
178        }
179 
180        _rightField_ = node;
181    }
182 
183    public TSemicolon getSemicolon()
184    {
185        return _semicolon_;
186    }
187 
188    public void setSemicolon(TSemicolon node)
189    {
190        if(_semicolon_ != null)
191        {
192            _semicolon_.parent(null);
193        }
194 
195        if(node != null)
196        {
197            if(node.parent() != null)
198            {
199                node.parent().removeChild(node);
200            }
201 
202            node.parent(this);
203        }
204 
205        _semicolon_ = node;
206    }
207 
208    public String toString()
209    {
210        return ""
211            + toString(_this_)
212            + toString(_period_)
213            + toString(_leftField_)
214            + toString(_eq_)
215            + toString(_rightField_)
216            + toString(_semicolon_);
217    }
218 
219    void removeChild(Node child)
220    {
221        if(_this_ == child)
222        {
223            _this_ = null;
224            return;
225        }
226 
227        if(_period_ == child)
228        {
229            _period_ = null;
230            return;
231        }
232 
233        if(_leftField_ == child)
234        {
235            _leftField_ = null;
236            return;
237        }
238 
239        if(_eq_ == child)
240        {
241            _eq_ = null;
242            return;
243        }
244 
245        if(_rightField_ == child)
246        {
247            _rightField_ = null;
248            return;
249        }
250 
251        if(_semicolon_ == child)
252        {
253            _semicolon_ = null;
254            return;
255        }
256 
257    }
258 
259    void replaceChild(Node oldChild, Node newChild)
260    {
261        if(_this_ == oldChild)
262        {
263            setThis((TThis) newChild);
264            return;
265        }
266 
267        if(_period_ == oldChild)
268        {
269            setPeriod((TPeriod) newChild);
270            return;
271        }
272 
273        if(_leftField_ == oldChild)
274        {
275            setLeftField((TIdentifier) newChild);
276            return;
277        }
278 
279        if(_eq_ == oldChild)
280        {
281            setEq((TEq) newChild);
282            return;
283        }
284 
285        if(_rightField_ == oldChild)
286        {
287            setRightField((TIdentifier) newChild);
288            return;
289        }
290 
291        if(_semicolon_ == oldChild)
292        {
293            setSemicolon((TSemicolon) newChild);
294            return;
295        }
296 
297    }
298}

[all classes][uk.co.zonetora.fj.ast.node]
EMMA 2.0.5312 (C) Vladimir Roubtsov