1 2 3 package org.sablecc.sablecc.syntax3.node; 4 5 import org.sablecc.sablecc.syntax3.analysis.*; 6 7 @SuppressWarnings ("nls") 8 public final class ANoStatesLexer extends PLexer 9 { 10 private PHelpers _helpers_; 11 private PTokens _tokens_; 12 private PInvestigators _investigators_; 13 private PPriorities _priorities_; 14 private PIgnored _ignored_; 15 private PLookahead _lookahead_; 16 17 public ANoStatesLexer() 18 { 19 } 21 22 public ANoStatesLexer( 23 @SuppressWarnings ("hiding") PHelpers _helpers_, 24 @SuppressWarnings ("hiding") PTokens _tokens_, 25 @SuppressWarnings ("hiding") PInvestigators _investigators_, 26 @SuppressWarnings ("hiding") PPriorities _priorities_, 27 @SuppressWarnings ("hiding") PIgnored _ignored_, 28 @SuppressWarnings ("hiding") PLookahead _lookahead_) 29 { 30 setHelpers(_helpers_); 32 33 setTokens(_tokens_); 34 35 setInvestigators(_investigators_); 36 37 setPriorities(_priorities_); 38 39 setIgnored(_ignored_); 40 41 setLookahead(_lookahead_); 42 43 } 44 45 @Override 46 public Object clone() 47 { 48 return new ANoStatesLexer( 49 cloneNode(this._helpers_), 50 cloneNode(this._tokens_), 51 cloneNode(this._investigators_), 52 cloneNode(this._priorities_), 53 cloneNode(this._ignored_), 54 cloneNode(this._lookahead_)); 55 } 56 57 public void apply(Switch sw) 58 { 59 ((Analysis) sw).caseANoStatesLexer(this); 60 } 61 62 public PHelpers getHelpers() 63 { 64 return this._helpers_; 65 } 66 67 public void setHelpers(PHelpers node) 68 { 69 if(this._helpers_ != null) 70 { 71 this._helpers_.parent(null); 72 } 73 74 if(node != null) 75 { 76 if(node.parent() != null) 77 { 78 node.parent().removeChild(node); 79 } 80 81 node.parent(this); 82 } 83 84 this._helpers_ = node; 85 } 86 87 public PTokens getTokens() 88 { 89 return this._tokens_; 90 } 91 92 public void setTokens(PTokens node) 93 { 94 if(this._tokens_ != null) 95 { 96 this._tokens_.parent(null); 97 } 98 99 if(node != null) 100 { 101 if(node.parent() != null) 102 { 103 node.parent().removeChild(node); 104 } 105 106 node.parent(this); 107 } 108 109 this._tokens_ = node; 110 } 111 112 public PInvestigators getInvestigators() 113 { 114 return this._investigators_; 115 } 116 117 public void setInvestigators(PInvestigators node) 118 { 119 if(this._investigators_ != null) 120 { 121 this._investigators_.parent(null); 122 } 123 124 if(node != null) 125 { 126 if(node.parent() != null) 127 { 128 node.parent().removeChild(node); 129 } 130 131 node.parent(this); 132 } 133 134 this._investigators_ = node; 135 } 136 137 public PPriorities getPriorities() 138 { 139 return this._priorities_; 140 } 141 142 public void setPriorities(PPriorities node) 143 { 144 if(this._priorities_ != null) 145 { 146 this._priorities_.parent(null); 147 } 148 149 if(node != null) 150 { 151 if(node.parent() != null) 152 { 153 node.parent().removeChild(node); 154 } 155 156 node.parent(this); 157 } 158 159 this._priorities_ = node; 160 } 161 162 public PIgnored getIgnored() 163 { 164 return this._ignored_; 165 } 166 167 public void setIgnored(PIgnored node) 168 { 169 if(this._ignored_ != null) 170 { 171 this._ignored_.parent(null); 172 } 173 174 if(node != null) 175 { 176 if(node.parent() != null) 177 { 178 node.parent().removeChild(node); 179 } 180 181 node.parent(this); 182 } 183 184 this._ignored_ = node; 185 } 186 187 public PLookahead getLookahead() 188 { 189 return this._lookahead_; 190 } 191 192 public void setLookahead(PLookahead node) 193 { 194 if(this._lookahead_ != null) 195 { 196 this._lookahead_.parent(null); 197 } 198 199 if(node != null) 200 { 201 if(node.parent() != null) 202 { 203 node.parent().removeChild(node); 204 } 205 206 node.parent(this); 207 } 208 209 this._lookahead_ = node; 210 } 211 212 @Override 213 public String toString() 214 { 215 return "" 216 + toString(this._helpers_) 217 + toString(this._tokens_) 218 + toString(this._investigators_) 219 + toString(this._priorities_) 220 + toString(this._ignored_) 221 + toString(this._lookahead_); 222 } 223 224 @Override 225 void removeChild(@SuppressWarnings ("unused") Node child) 226 { 227 if(this._helpers_ == child) 229 { 230 this._helpers_ = null; 231 return; 232 } 233 234 if(this._tokens_ == child) 235 { 236 this._tokens_ = null; 237 return; 238 } 239 240 if(this._investigators_ == child) 241 { 242 this._investigators_ = null; 243 return; 244 } 245 246 if(this._priorities_ == child) 247 { 248 this._priorities_ = null; 249 return; 250 } 251 252 if(this._ignored_ == child) 253 { 254 this._ignored_ = null; 255 return; 256 } 257 258 if(this._lookahead_ == child) 259 { 260 this._lookahead_ = null; 261 return; 262 } 263 264 throw new RuntimeException ("Not a child."); 265 } 266 267 @Override 268 void replaceChild(@SuppressWarnings ("unused") Node oldChild, @SuppressWarnings ("unused") Node newChild) 269 { 270 if(this._helpers_ == oldChild) 272 { 273 setHelpers((PHelpers) newChild); 274 return; 275 } 276 277 if(this._tokens_ == oldChild) 278 { 279 setTokens((PTokens) newChild); 280 return; 281 } 282 283 if(this._investigators_ == oldChild) 284 { 285 setInvestigators((PInvestigators) newChild); 286 return; 287 } 288 289 if(this._priorities_ == oldChild) 290 { 291 setPriorities((PPriorities) newChild); 292 return; 293 } 294 295 if(this._ignored_ == oldChild) 296 { 297 setIgnored((PIgnored) newChild); 298 return; 299 } 300 301 if(this._lookahead_ == oldChild) 302 { 303 setLookahead((PLookahead) newChild); 304 return; 305 } 306 307 throw new RuntimeException ("Not a child."); 308 } 309 } 310 | Popular Tags |