KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > soot > jimple > parser > node > X1PCaseStmt


1 /* This file was generated by SableCC (http://www.sablecc.org/). */
2
3 package soot.jimple.parser.node;
4
5 import soot.jimple.parser.analysis.*;
6
7 public final class X1PCaseStmt extends XPCaseStmt
8 {
9     private XPCaseStmt _xPCaseStmt_;
10     private PCaseStmt _pCaseStmt_;
11
12     public X1PCaseStmt()
13     {
14     }
15
16     public X1PCaseStmt(
17         XPCaseStmt _xPCaseStmt_,
18         PCaseStmt _pCaseStmt_)
19     {
20         setXPCaseStmt(_xPCaseStmt_);
21         setPCaseStmt(_pCaseStmt_);
22     }
23
24     public Object JavaDoc clone()
25     {
26         throw new RuntimeException JavaDoc("Unsupported Operation");
27     }
28
29     public void apply(Switch sw)
30     {
31         throw new RuntimeException JavaDoc("Switch not supported.");
32     }
33
34     public XPCaseStmt getXPCaseStmt()
35     {
36         return _xPCaseStmt_;
37     }
38
39     public void setXPCaseStmt(XPCaseStmt node)
40     {
41         if(_xPCaseStmt_ != null)
42         {
43             _xPCaseStmt_.parent(null);
44         }
45
46         if(node != null)
47         {
48             if(node.parent() != null)
49             {
50                 node.parent().removeChild(node);
51             }
52
53             node.parent(this);
54         }
55
56         _xPCaseStmt_ = node;
57     }
58
59     public PCaseStmt getPCaseStmt()
60     {
61         return _pCaseStmt_;
62     }
63
64     public void setPCaseStmt(PCaseStmt node)
65     {
66         if(_pCaseStmt_ != null)
67         {
68             _pCaseStmt_.parent(null);
69         }
70
71         if(node != null)
72         {
73             if(node.parent() != null)
74             {
75                 node.parent().removeChild(node);
76             }
77
78             node.parent(this);
79         }
80
81         _pCaseStmt_ = node;
82     }
83
84     void removeChild(Node child)
85     {
86         if(_xPCaseStmt_ == child)
87         {
88             _xPCaseStmt_ = null;
89         }
90
91         if(_pCaseStmt_ == child)
92         {
93             _pCaseStmt_ = null;
94         }
95     }
96
97     void replaceChild(Node oldChild, Node newChild)
98     {
99     }
100
101     public String JavaDoc toString()
102     {
103         return "" +
104             toString(_xPCaseStmt_) +
105             toString(_pCaseStmt_);
106     }
107 }
108
Popular Tags