KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* This file was generated by SableCC (http://www.sablecc.org/). */
2
3 package soot.jimple.parser.node;
4
5 import java.util.*;
6 import soot.jimple.parser.analysis.*;
7
8 public final class ANonstaticInvokeExpr extends PInvokeExpr
9 {
10     private PNonstaticInvoke _nonstaticInvoke_;
11     private PLocalName _localName_;
12     private TDot _dot_;
13     private PMethodSignature _methodSignature_;
14     private TLParen _lParen_;
15     private PArgList _argList_;
16     private TRParen _rParen_;
17
18     public ANonstaticInvokeExpr()
19     {
20     }
21
22     public ANonstaticInvokeExpr(
23         PNonstaticInvoke _nonstaticInvoke_,
24         PLocalName _localName_,
25         TDot _dot_,
26         PMethodSignature _methodSignature_,
27         TLParen _lParen_,
28         PArgList _argList_,
29         TRParen _rParen_)
30     {
31         setNonstaticInvoke(_nonstaticInvoke_);
32
33         setLocalName(_localName_);
34
35         setDot(_dot_);
36
37         setMethodSignature(_methodSignature_);
38
39         setLParen(_lParen_);
40
41         setArgList(_argList_);
42
43         setRParen(_rParen_);
44
45     }
46     public Object JavaDoc clone()
47     {
48         return new ANonstaticInvokeExpr(
49             (PNonstaticInvoke) cloneNode(_nonstaticInvoke_),
50             (PLocalName) cloneNode(_localName_),
51             (TDot) cloneNode(_dot_),
52             (PMethodSignature) cloneNode(_methodSignature_),
53             (TLParen) cloneNode(_lParen_),
54             (PArgList) cloneNode(_argList_),
55             (TRParen) cloneNode(_rParen_));
56     }
57
58     public void apply(Switch sw)
59     {
60         ((Analysis) sw).caseANonstaticInvokeExpr(this);
61     }
62
63     public PNonstaticInvoke getNonstaticInvoke()
64     {
65         return _nonstaticInvoke_;
66     }
67
68     public void setNonstaticInvoke(PNonstaticInvoke node)
69     {
70         if(_nonstaticInvoke_ != null)
71         {
72             _nonstaticInvoke_.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         _nonstaticInvoke_ = node;
86     }
87
88     public PLocalName getLocalName()
89     {
90         return _localName_;
91     }
92
93     public void setLocalName(PLocalName node)
94     {
95         if(_localName_ != null)
96         {
97             _localName_.parent(null);
98         }
99
100         if(node != null)
101         {
102             if(node.parent() != null)
103             {
104                 node.parent().removeChild(node);
105             }
106
107             node.parent(this);
108         }
109
110         _localName_ = node;
111     }
112
113     public TDot getDot()
114     {
115         return _dot_;
116     }
117
118     public void setDot(TDot node)
119     {
120         if(_dot_ != null)
121         {
122             _dot_.parent(null);
123         }
124
125         if(node != null)
126         {
127             if(node.parent() != null)
128             {
129                 node.parent().removeChild(node);
130             }
131
132             node.parent(this);
133         }
134
135         _dot_ = node;
136     }
137
138     public PMethodSignature getMethodSignature()
139     {
140         return _methodSignature_;
141     }
142
143     public void setMethodSignature(PMethodSignature node)
144     {
145         if(_methodSignature_ != null)
146         {
147             _methodSignature_.parent(null);
148         }
149
150         if(node != null)
151         {
152             if(node.parent() != null)
153             {
154                 node.parent().removeChild(node);
155             }
156
157             node.parent(this);
158         }
159
160         _methodSignature_ = node;
161     }
162
163     public TLParen getLParen()
164     {
165         return _lParen_;
166     }
167
168     public void setLParen(TLParen node)
169     {
170         if(_lParen_ != null)
171         {
172             _lParen_.parent(null);
173         }
174
175         if(node != null)
176         {
177             if(node.parent() != null)
178             {
179                 node.parent().removeChild(node);
180             }
181
182             node.parent(this);
183         }
184
185         _lParen_ = node;
186     }
187
188     public PArgList getArgList()
189     {
190         return _argList_;
191     }
192
193     public void setArgList(PArgList node)
194     {
195         if(_argList_ != null)
196         {
197             _argList_.parent(null);
198         }
199
200         if(node != null)
201         {
202             if(node.parent() != null)
203             {
204                 node.parent().removeChild(node);
205             }
206
207             node.parent(this);
208         }
209
210         _argList_ = node;
211     }
212
213     public TRParen getRParen()
214     {
215         return _rParen_;
216     }
217
218     public void setRParen(TRParen node)
219     {
220         if(_rParen_ != null)
221         {
222             _rParen_.parent(null);
223         }
224
225         if(node != null)
226         {
227             if(node.parent() != null)
228             {
229                 node.parent().removeChild(node);
230             }
231
232             node.parent(this);
233         }
234
235         _rParen_ = node;
236     }
237
238     public String JavaDoc toString()
239     {
240         return ""
241             + toString(_nonstaticInvoke_)
242             + toString(_localName_)
243             + toString(_dot_)
244             + toString(_methodSignature_)
245             + toString(_lParen_)
246             + toString(_argList_)
247             + toString(_rParen_);
248     }
249
250     void removeChild(Node child)
251     {
252         if(_nonstaticInvoke_ == child)
253         {
254             _nonstaticInvoke_ = null;
255             return;
256         }
257
258         if(_localName_ == child)
259         {
260             _localName_ = null;
261             return;
262         }
263
264         if(_dot_ == child)
265         {
266             _dot_ = null;
267             return;
268         }
269
270         if(_methodSignature_ == child)
271         {
272             _methodSignature_ = null;
273             return;
274         }
275
276         if(_lParen_ == child)
277         {
278             _lParen_ = null;
279             return;
280         }
281
282         if(_argList_ == child)
283         {
284             _argList_ = null;
285             return;
286         }
287
288         if(_rParen_ == child)
289         {
290             _rParen_ = null;
291             return;
292         }
293
294     }
295
296     void replaceChild(Node oldChild, Node newChild)
297     {
298         if(_nonstaticInvoke_ == oldChild)
299         {
300             setNonstaticInvoke((PNonstaticInvoke) newChild);
301             return;
302         }
303
304         if(_localName_ == oldChild)
305         {
306             setLocalName((PLocalName) newChild);
307             return;
308         }
309
310         if(_dot_ == oldChild)
311         {
312             setDot((TDot) newChild);
313             return;
314         }
315
316         if(_methodSignature_ == oldChild)
317         {
318             setMethodSignature((PMethodSignature) newChild);
319             return;
320         }
321
322         if(_lParen_ == oldChild)
323         {
324             setLParen((TLParen) newChild);
325             return;
326         }
327
328         if(_argList_ == oldChild)
329         {
330             setArgList((PArgList) newChild);
331             return;
332         }
333
334         if(_rParen_ == oldChild)
335         {
336             setRParen((TRParen) newChild);
337             return;
338         }
339
340     }
341 }
342
Popular Tags