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 [AMethodDecl.java]

nameclass, %method, %block, %line, %
AMethodDecl.java100% (1/1)56%  (15/27)34%  (195/582)40%  (76/190)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AMethodDecl100% (1/1)56%  (15/27)34%  (195/582)40%  (76/190)
AMethodDecl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
apply (Switch): void 0%   (0/1)0%   (0/5)0%   (0/2)
clone (): Object 0%   (0/1)0%   (0/54)0%   (0/11)
getLBrace (): TLBrace 0%   (0/1)0%   (0/3)0%   (0/1)
getLPar (): TLPar 0%   (0/1)0%   (0/3)0%   (0/1)
getRBrace (): TRBrace 0%   (0/1)0%   (0/3)0%   (0/1)
getRPar (): TRPar 0%   (0/1)0%   (0/3)0%   (0/1)
getReturn (): TReturn 0%   (0/1)0%   (0/3)0%   (0/1)
getSemicolon (): TSemicolon 0%   (0/1)0%   (0/3)0%   (0/1)
removeChild (Node): void 0%   (0/1)0%   (0/81)0%   (0/31)
replaceChild (Node, Node): void 0%   (0/1)0%   (0/91)0%   (0/31)
toString (): String 0%   (0/1)0%   (0/55)0%   (0/11)
setClassname (TIdentifier): void 100% (1/1)65%  (15/23)75%  (6/8)
setLBrace (TLBrace): void 100% (1/1)65%  (15/23)75%  (6/8)
setLPar (TLPar): void 100% (1/1)65%  (15/23)75%  (6/8)
setMethodname (TIdentifier): void 100% (1/1)65%  (15/23)75%  (6/8)
setParamDeclList (PParamDeclList): void 100% (1/1)65%  (15/23)75%  (6/8)
setRBrace (TRBrace): void 100% (1/1)65%  (15/23)75%  (6/8)
setRPar (TRPar): void 100% (1/1)65%  (15/23)75%  (6/8)
setReturn (TReturn): void 100% (1/1)65%  (15/23)75%  (6/8)
setSemicolon (TSemicolon): void 100% (1/1)65%  (15/23)75%  (6/8)
setTerm (PTerm): void 100% (1/1)65%  (15/23)75%  (6/8)
AMethodDecl (TIdentifier, TIdentifier, TLPar, PParamDeclList, TRPar, TLBrace,... 100% (1/1)100% (33/33)100% (12/12)
getClassname (): TIdentifier 100% (1/1)100% (3/3)100% (1/1)
getMethodname (): TIdentifier 100% (1/1)100% (3/3)100% (1/1)
getParamDeclList (): PParamDeclList 100% (1/1)100% (3/3)100% (1/1)
getTerm (): PTerm 100% (1/1)100% (3/3)100% (1/1)

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 AMethodDecl extends PMethodDecl
9{
10    private TIdentifier _classname_;
11    private TIdentifier _methodname_;
12    private TLPar _lPar_;
13    private PParamDeclList _paramDeclList_;
14    private TRPar _rPar_;
15    private TLBrace _lBrace_;
16    private TReturn _return_;
17    private PTerm _term_;
18    private TSemicolon _semicolon_;
19    private TRBrace _rBrace_;
20 
21    public AMethodDecl()
22    {
23    }
24 
25    public AMethodDecl(
26        TIdentifier _classname_,
27        TIdentifier _methodname_,
28        TLPar _lPar_,
29        PParamDeclList _paramDeclList_,
30        TRPar _rPar_,
31        TLBrace _lBrace_,
32        TReturn _return_,
33        PTerm _term_,
34        TSemicolon _semicolon_,
35        TRBrace _rBrace_)
36    {
37        setClassname(_classname_);
38 
39        setMethodname(_methodname_);
40 
41        setLPar(_lPar_);
42 
43        setParamDeclList(_paramDeclList_);
44 
45        setRPar(_rPar_);
46 
47        setLBrace(_lBrace_);
48 
49        setReturn(_return_);
50 
51        setTerm(_term_);
52 
53        setSemicolon(_semicolon_);
54 
55        setRBrace(_rBrace_);
56 
57    }
58    public Object clone()
59    {
60        return new AMethodDecl(
61            (TIdentifier) cloneNode(_classname_),
62            (TIdentifier) cloneNode(_methodname_),
63            (TLPar) cloneNode(_lPar_),
64            (PParamDeclList) cloneNode(_paramDeclList_),
65            (TRPar) cloneNode(_rPar_),
66            (TLBrace) cloneNode(_lBrace_),
67            (TReturn) cloneNode(_return_),
68            (PTerm) cloneNode(_term_),
69            (TSemicolon) cloneNode(_semicolon_),
70            (TRBrace) cloneNode(_rBrace_));
71    }
72 
73    public void apply(Switch sw)
74    {
75        ((Analysis) sw).caseAMethodDecl(this);
76    }
77 
78    public TIdentifier getClassname()
79    {
80        return _classname_;
81    }
82 
83    public void setClassname(TIdentifier node)
84    {
85        if(_classname_ != null)
86        {
87            _classname_.parent(null);
88        }
89 
90        if(node != null)
91        {
92            if(node.parent() != null)
93            {
94                node.parent().removeChild(node);
95            }
96 
97            node.parent(this);
98        }
99 
100        _classname_ = node;
101    }
102 
103    public TIdentifier getMethodname()
104    {
105        return _methodname_;
106    }
107 
108    public void setMethodname(TIdentifier node)
109    {
110        if(_methodname_ != null)
111        {
112            _methodname_.parent(null);
113        }
114 
115        if(node != null)
116        {
117            if(node.parent() != null)
118            {
119                node.parent().removeChild(node);
120            }
121 
122            node.parent(this);
123        }
124 
125        _methodname_ = node;
126    }
127 
128    public TLPar getLPar()
129    {
130        return _lPar_;
131    }
132 
133    public void setLPar(TLPar node)
134    {
135        if(_lPar_ != null)
136        {
137            _lPar_.parent(null);
138        }
139 
140        if(node != null)
141        {
142            if(node.parent() != null)
143            {
144                node.parent().removeChild(node);
145            }
146 
147            node.parent(this);
148        }
149 
150        _lPar_ = node;
151    }
152 
153    public PParamDeclList getParamDeclList()
154    {
155        return _paramDeclList_;
156    }
157 
158    public void setParamDeclList(PParamDeclList node)
159    {
160        if(_paramDeclList_ != null)
161        {
162            _paramDeclList_.parent(null);
163        }
164 
165        if(node != null)
166        {
167            if(node.parent() != null)
168            {
169                node.parent().removeChild(node);
170            }
171 
172            node.parent(this);
173        }
174 
175        _paramDeclList_ = node;
176    }
177 
178    public TRPar getRPar()
179    {
180        return _rPar_;
181    }
182 
183    public void setRPar(TRPar node)
184    {
185        if(_rPar_ != null)
186        {
187            _rPar_.parent(null);
188        }
189 
190        if(node != null)
191        {
192            if(node.parent() != null)
193            {
194                node.parent().removeChild(node);
195            }
196 
197            node.parent(this);
198        }
199 
200        _rPar_ = node;
201    }
202 
203    public TLBrace getLBrace()
204    {
205        return _lBrace_;
206    }
207 
208    public void setLBrace(TLBrace node)
209    {
210        if(_lBrace_ != null)
211        {
212            _lBrace_.parent(null);
213        }
214 
215        if(node != null)
216        {
217            if(node.parent() != null)
218            {
219                node.parent().removeChild(node);
220            }
221 
222            node.parent(this);
223        }
224 
225        _lBrace_ = node;
226    }
227 
228    public TReturn getReturn()
229    {
230        return _return_;
231    }
232 
233    public void setReturn(TReturn node)
234    {
235        if(_return_ != null)
236        {
237            _return_.parent(null);
238        }
239 
240        if(node != null)
241        {
242            if(node.parent() != null)
243            {
244                node.parent().removeChild(node);
245            }
246 
247            node.parent(this);
248        }
249 
250        _return_ = node;
251    }
252 
253    public PTerm getTerm()
254    {
255        return _term_;
256    }
257 
258    public void setTerm(PTerm node)
259    {
260        if(_term_ != null)
261        {
262            _term_.parent(null);
263        }
264 
265        if(node != null)
266        {
267            if(node.parent() != null)
268            {
269                node.parent().removeChild(node);
270            }
271 
272            node.parent(this);
273        }
274 
275        _term_ = node;
276    }
277 
278    public TSemicolon getSemicolon()
279    {
280        return _semicolon_;
281    }
282 
283    public void setSemicolon(TSemicolon node)
284    {
285        if(_semicolon_ != null)
286        {
287            _semicolon_.parent(null);
288        }
289 
290        if(node != null)
291        {
292            if(node.parent() != null)
293            {
294                node.parent().removeChild(node);
295            }
296 
297            node.parent(this);
298        }
299 
300        _semicolon_ = node;
301    }
302 
303    public TRBrace getRBrace()
304    {
305        return _rBrace_;
306    }
307 
308    public void setRBrace(TRBrace node)
309    {
310        if(_rBrace_ != null)
311        {
312            _rBrace_.parent(null);
313        }
314 
315        if(node != null)
316        {
317            if(node.parent() != null)
318            {
319                node.parent().removeChild(node);
320            }
321 
322            node.parent(this);
323        }
324 
325        _rBrace_ = node;
326    }
327 
328    public String toString()
329    {
330        return ""
331            + toString(_classname_)
332            + toString(_methodname_)
333            + toString(_lPar_)
334            + toString(_paramDeclList_)
335            + toString(_rPar_)
336            + toString(_lBrace_)
337            + toString(_return_)
338            + toString(_term_)
339            + toString(_semicolon_)
340            + toString(_rBrace_);
341    }
342 
343    void removeChild(Node child)
344    {
345        if(_classname_ == child)
346        {
347            _classname_ = null;
348            return;
349        }
350 
351        if(_methodname_ == child)
352        {
353            _methodname_ = null;
354            return;
355        }
356 
357        if(_lPar_ == child)
358        {
359            _lPar_ = null;
360            return;
361        }
362 
363        if(_paramDeclList_ == child)
364        {
365            _paramDeclList_ = null;
366            return;
367        }
368 
369        if(_rPar_ == child)
370        {
371            _rPar_ = null;
372            return;
373        }
374 
375        if(_lBrace_ == child)
376        {
377            _lBrace_ = null;
378            return;
379        }
380 
381        if(_return_ == child)
382        {
383            _return_ = null;
384            return;
385        }
386 
387        if(_term_ == child)
388        {
389            _term_ = null;
390            return;
391        }
392 
393        if(_semicolon_ == child)
394        {
395            _semicolon_ = null;
396            return;
397        }
398 
399        if(_rBrace_ == child)
400        {
401            _rBrace_ = null;
402            return;
403        }
404 
405    }
406 
407    void replaceChild(Node oldChild, Node newChild)
408    {
409        if(_classname_ == oldChild)
410        {
411            setClassname((TIdentifier) newChild);
412            return;
413        }
414 
415        if(_methodname_ == oldChild)
416        {
417            setMethodname((TIdentifier) newChild);
418            return;
419        }
420 
421        if(_lPar_ == oldChild)
422        {
423            setLPar((TLPar) newChild);
424            return;
425        }
426 
427        if(_paramDeclList_ == oldChild)
428        {
429            setParamDeclList((PParamDeclList) newChild);
430            return;
431        }
432 
433        if(_rPar_ == oldChild)
434        {
435            setRPar((TRPar) newChild);
436            return;
437        }
438 
439        if(_lBrace_ == oldChild)
440        {
441            setLBrace((TLBrace) newChild);
442            return;
443        }
444 
445        if(_return_ == oldChild)
446        {
447            setReturn((TReturn) newChild);
448            return;
449        }
450 
451        if(_term_ == oldChild)
452        {
453            setTerm((PTerm) newChild);
454            return;
455        }
456 
457        if(_semicolon_ == oldChild)
458        {
459            setSemicolon((TSemicolon) newChild);
460            return;
461        }
462 
463        if(_rBrace_ == oldChild)
464        {
465            setRBrace((TRBrace) newChild);
466            return;
467        }
468 
469    }
470}

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