00001 package edu.ksu.cis.bandera.abstraction.specification.node;
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 import java.util.*;
00039 import edu.ksu.cis.bandera.abstraction.specification.analysis.*;
00040
00041 public final class ADecLongLiteral extends PLiteral
00042 {
00043 private TDecLongLiteral _decLongLiteral_;
00044
00045 public ADecLongLiteral()
00046 {
00047 }
00048 public ADecLongLiteral(
00049 TDecLongLiteral _decLongLiteral_)
00050 {
00051 setDecLongLiteral(_decLongLiteral_);
00052
00053 }
00054 public void apply(Switch sw)
00055 {
00056 ((Analysis) sw).caseADecLongLiteral(this);
00057 }
00058 public Object clone()
00059 {
00060 return new ADecLongLiteral(
00061 (TDecLongLiteral) cloneNode(_decLongLiteral_));
00062 }
00063 public TDecLongLiteral getDecLongLiteral()
00064 {
00065 return _decLongLiteral_;
00066 }
00067 void removeChild(Node child)
00068 {
00069 if(_decLongLiteral_ == child)
00070 {
00071 _decLongLiteral_ = null;
00072 return;
00073 }
00074
00075 }
00076 void replaceChild(Node oldChild, Node newChild)
00077 {
00078 if(_decLongLiteral_ == oldChild)
00079 {
00080 setDecLongLiteral((TDecLongLiteral) newChild);
00081 return;
00082 }
00083
00084 }
00085 public void setDecLongLiteral(TDecLongLiteral node)
00086 {
00087 if(_decLongLiteral_ != null)
00088 {
00089 _decLongLiteral_.parent(null);
00090 }
00091
00092 if(node != null)
00093 {
00094 if(node.parent() != null)
00095 {
00096 node.parent().removeChild(node);
00097 }
00098
00099 node.parent(this);
00100 }
00101
00102 _decLongLiteral_ = node;
00103 }
00104 public String toString()
00105 {
00106 return ""
00107 + toString(_decLongLiteral_);
00108 }
00109 }