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

nameclass, %method, %block, %line, %
X2PMethodDecl.java100% (1/1)44%  (4/9)50%  (32/64)59%  (13/22)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class X2PMethodDecl100% (1/1)44%  (4/9)50%  (32/64)59%  (13/22)
X2PMethodDecl (): void 0%   (0/1)0%   (0/3)0%   (0/2)
apply (Switch): void 0%   (0/1)0%   (0/5)0%   (0/1)
clone (): Object 0%   (0/1)0%   (0/5)0%   (0/1)
replaceChild (Node, Node): void 0%   (0/1)0%   (0/1)0%   (0/1)
toString (): String 0%   (0/1)0%   (0/10)0%   (0/2)
setPMethodDecl (PMethodDecl): void 100% (1/1)65%  (15/23)75%  (6/8)
X2PMethodDecl (PMethodDecl): void 100% (1/1)100% (6/6)100% (3/3)
getPMethodDecl (): PMethodDecl 100% (1/1)100% (3/3)100% (1/1)
removeChild (Node): void 100% (1/1)100% (8/8)100% (3/3)

1/* This file was generated by SableCC (http://www.sablecc.org/). */
2 
3package uk.co.zonetora.fj.ast.node;
4 
5import uk.co.zonetora.fj.ast.analysis.*;
6 
7public final class X2PMethodDecl extends XPMethodDecl
8{
9    private PMethodDecl _pMethodDecl_;
10 
11    public X2PMethodDecl()
12    {
13    }
14 
15    public X2PMethodDecl(
16        PMethodDecl _pMethodDecl_)
17    {
18        setPMethodDecl(_pMethodDecl_);
19    }
20 
21    public Object clone()
22    {
23        throw new RuntimeException("Unsupported Operation");
24    }
25 
26    public void apply(Switch sw)
27    {
28        throw new RuntimeException("Switch not supported.");
29    }
30 
31    public PMethodDecl getPMethodDecl()
32    {
33        return _pMethodDecl_;
34    }
35 
36    public void setPMethodDecl(PMethodDecl node)
37    {
38        if(_pMethodDecl_ != null)
39        {
40            _pMethodDecl_.parent(null);
41        }
42 
43        if(node != null)
44        {
45            if(node.parent() != null)
46            {
47                node.parent().removeChild(node);
48            }
49 
50            node.parent(this);
51        }
52 
53        _pMethodDecl_ = node;
54    }
55 
56    void removeChild(Node child)
57    {
58        if(_pMethodDecl_ == child)
59        {
60            _pMethodDecl_ = null;
61        }
62    }
63 
64    void replaceChild(Node oldChild, Node newChild)
65    {
66    }
67 
68    public String toString()
69    {
70        return "" +
71            toString(_pMethodDecl_);
72    }
73}

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