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

nameclass, %method, %block, %line, %
AFieldName.java0%   (0/1)0%   (0/9)0%   (0/78)0%   (0/28)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AFieldName0%   (0/1)0%   (0/9)0%   (0/78)0%   (0/28)
AFieldName (): void 0%   (0/1)0%   (0/3)0%   (0/2)
AFieldName (TIdentifier): void 0%   (0/1)0%   (0/6)0%   (0/3)
apply (Switch): void 0%   (0/1)0%   (0/5)0%   (0/2)
clone (): Object 0%   (0/1)0%   (0/9)0%   (0/2)
getIdentifier (): TIdentifier 0%   (0/1)0%   (0/3)0%   (0/1)
removeChild (Node): void 0%   (0/1)0%   (0/9)0%   (0/4)
replaceChild (Node, Node): void 0%   (0/1)0%   (0/10)0%   (0/4)
setIdentifier (TIdentifier): void 0%   (0/1)0%   (0/23)0%   (0/8)
toString (): String 0%   (0/1)0%   (0/10)0%   (0/2)

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 AFieldName extends PFieldName
9{
10    private TIdentifier _identifier_;
11 
12    public AFieldName()
13    {
14    }
15 
16    public AFieldName(
17        TIdentifier _identifier_)
18    {
19        setIdentifier(_identifier_);
20 
21    }
22    public Object clone()
23    {
24        return new AFieldName(
25            (TIdentifier) cloneNode(_identifier_));
26    }
27 
28    public void apply(Switch sw)
29    {
30        ((Analysis) sw).caseAFieldName(this);
31    }
32 
33    public TIdentifier getIdentifier()
34    {
35        return _identifier_;
36    }
37 
38    public void setIdentifier(TIdentifier node)
39    {
40        if(_identifier_ != null)
41        {
42            _identifier_.parent(null);
43        }
44 
45        if(node != null)
46        {
47            if(node.parent() != null)
48            {
49                node.parent().removeChild(node);
50            }
51 
52            node.parent(this);
53        }
54 
55        _identifier_ = node;
56    }
57 
58    public String toString()
59    {
60        return ""
61            + toString(_identifier_);
62    }
63 
64    void removeChild(Node child)
65    {
66        if(_identifier_ == child)
67        {
68            _identifier_ = null;
69            return;
70        }
71 
72    }
73 
74    void replaceChild(Node oldChild, Node newChild)
75    {
76        if(_identifier_ == oldChild)
77        {
78            setIdentifier((TIdentifier) newChild);
79            return;
80        }
81 
82    }
83}

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