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

nameclass, %method, %block, %line, %
AThisParamArg.java0%   (0/1)0%   (0/11)0%   (0/134)0%   (0/46)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AThisParamArg0%   (0/1)0%   (0/11)0%   (0/134)0%   (0/46)
AThisParamArg (): void 0%   (0/1)0%   (0/3)0%   (0/2)
AThisParamArg (TThis, TIdentifier): void 0%   (0/1)0%   (0/9)0%   (0/4)
apply (Switch): void 0%   (0/1)0%   (0/5)0%   (0/2)
clone (): Object 0%   (0/1)0%   (0/14)0%   (0/3)
getIdentifier (): TIdentifier 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/17)0%   (0/7)
replaceChild (Node, Node): void 0%   (0/1)0%   (0/19)0%   (0/7)
setIdentifier (TIdentifier): 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/15)0%   (0/3)

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 AThisParamArg extends PParamArg
9{
10    private TThis _this_;
11    private TIdentifier _identifier_;
12 
13    public AThisParamArg()
14    {
15    }
16 
17    public AThisParamArg(
18        TThis _this_,
19        TIdentifier _identifier_)
20    {
21        setThis(_this_);
22 
23        setIdentifier(_identifier_);
24 
25    }
26    public Object clone()
27    {
28        return new AThisParamArg(
29            (TThis) cloneNode(_this_),
30            (TIdentifier) cloneNode(_identifier_));
31    }
32 
33    public void apply(Switch sw)
34    {
35        ((Analysis) sw).caseAThisParamArg(this);
36    }
37 
38    public TThis getThis()
39    {
40        return _this_;
41    }
42 
43    public void setThis(TThis node)
44    {
45        if(_this_ != null)
46        {
47            _this_.parent(null);
48        }
49 
50        if(node != null)
51        {
52            if(node.parent() != null)
53            {
54                node.parent().removeChild(node);
55            }
56 
57            node.parent(this);
58        }
59 
60        _this_ = node;
61    }
62 
63    public TIdentifier getIdentifier()
64    {
65        return _identifier_;
66    }
67 
68    public void setIdentifier(TIdentifier node)
69    {
70        if(_identifier_ != null)
71        {
72            _identifier_.parent(null);
73        }
74 
75        if(node != null)
76        {
77            if(node.parent() != null)
78            {
79                node.parent().removeChild(node);
80            }
81 
82            node.parent(this);
83        }
84 
85        _identifier_ = node;
86    }
87 
88    public String toString()
89    {
90        return ""
91            + toString(_this_)
92            + toString(_identifier_);
93    }
94 
95    void removeChild(Node child)
96    {
97        if(_this_ == child)
98        {
99            _this_ = null;
100            return;
101        }
102 
103        if(_identifier_ == child)
104        {
105            _identifier_ = null;
106            return;
107        }
108 
109    }
110 
111    void replaceChild(Node oldChild, Node newChild)
112    {
113        if(_this_ == oldChild)
114        {
115            setThis((TThis) newChild);
116            return;
117        }
118 
119        if(_identifier_ == oldChild)
120        {
121            setIdentifier((TIdentifier) newChild);
122            return;
123        }
124 
125    }
126}

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