KickJava   Java API By Example, From Geeks To Geeks.

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


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 ALongBaseTypeNoName extends PBaseTypeNoName
9 {
10     private TLong _long_;
11
12     public ALongBaseTypeNoName()
13     {
14     }
15
16     public ALongBaseTypeNoName(
17         TLong _long_)
18     {
19         setLong(_long_);
20
21     }
22     public Object JavaDoc clone()
23     {
24         return new ALongBaseTypeNoName(
25             (TLong) cloneNode(_long_));
26     }
27
28     public void apply(Switch sw)
29     {
30         ((Analysis) sw).caseALongBaseTypeNoName(this);
31     }
32
33     public TLong getLong()
34     {
35         return _long_;
36     }
37
38     public void setLong(TLong node)
39     {
40         if(_long_ != null)
41         {
42             _long_.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         _long_ = node;
56     }
57
58     public String JavaDoc toString()
59     {
60         return ""
61             + toString(_long_);
62     }
63
64     void removeChild(Node child)
65     {
66         if(_long_ == child)
67         {
68             _long_ = null;
69             return;
70         }
71
72     }
73
74     void replaceChild(Node oldChild, Node newChild)
75     {
76         if(_long_ == oldChild)
77         {
78             setLong((TLong) newChild);
79             return;
80         }
81
82     }
83 }
84
Popular Tags