1 /* This file was generated by SableCC (http://www.sablecc.org/). */ 2 3 package com.google.clearsilver.jsilver.syntax.analysis; 4 5 import java.util.*; 6 import com.google.clearsilver.jsilver.syntax.node.*; 7 8 public class DepthFirstAdapter extends AnalysisAdapter 9 { inStart(Start node)10 public void inStart(Start node) 11 { 12 defaultIn(node); 13 } 14 outStart(Start node)15 public void outStart(Start node) 16 { 17 defaultOut(node); 18 } 19 defaultIn(@uppressWarnings"unused") Node node)20 public void defaultIn(@SuppressWarnings("unused") Node node) 21 { 22 // Do nothing 23 } 24 defaultOut(@uppressWarnings"unused") Node node)25 public void defaultOut(@SuppressWarnings("unused") Node node) 26 { 27 // Do nothing 28 } 29 30 @Override caseStart(Start node)31 public void caseStart(Start node) 32 { 33 inStart(node); 34 node.getPCommand().apply(this); 35 node.getEOF().apply(this); 36 outStart(node); 37 } 38 inAMultipleCommand(AMultipleCommand node)39 public void inAMultipleCommand(AMultipleCommand node) 40 { 41 defaultIn(node); 42 } 43 outAMultipleCommand(AMultipleCommand node)44 public void outAMultipleCommand(AMultipleCommand node) 45 { 46 defaultOut(node); 47 } 48 49 @Override caseAMultipleCommand(AMultipleCommand node)50 public void caseAMultipleCommand(AMultipleCommand node) 51 { 52 inAMultipleCommand(node); 53 { 54 List<PCommand> copy = new ArrayList<PCommand>(node.getCommand()); 55 for(PCommand e : copy) 56 { 57 e.apply(this); 58 } 59 } 60 outAMultipleCommand(node); 61 } 62 inACommentCommand(ACommentCommand node)63 public void inACommentCommand(ACommentCommand node) 64 { 65 defaultIn(node); 66 } 67 outACommentCommand(ACommentCommand node)68 public void outACommentCommand(ACommentCommand node) 69 { 70 defaultOut(node); 71 } 72 73 @Override caseACommentCommand(ACommentCommand node)74 public void caseACommentCommand(ACommentCommand node) 75 { 76 inACommentCommand(node); 77 if(node.getPosition() != null) 78 { 79 node.getPosition().apply(this); 80 } 81 if(node.getComment() != null) 82 { 83 node.getComment().apply(this); 84 } 85 outACommentCommand(node); 86 } 87 inADataCommand(ADataCommand node)88 public void inADataCommand(ADataCommand node) 89 { 90 defaultIn(node); 91 } 92 outADataCommand(ADataCommand node)93 public void outADataCommand(ADataCommand node) 94 { 95 defaultOut(node); 96 } 97 98 @Override caseADataCommand(ADataCommand node)99 public void caseADataCommand(ADataCommand node) 100 { 101 inADataCommand(node); 102 if(node.getData() != null) 103 { 104 node.getData().apply(this); 105 } 106 outADataCommand(node); 107 } 108 inAVarCommand(AVarCommand node)109 public void inAVarCommand(AVarCommand node) 110 { 111 defaultIn(node); 112 } 113 outAVarCommand(AVarCommand node)114 public void outAVarCommand(AVarCommand node) 115 { 116 defaultOut(node); 117 } 118 119 @Override caseAVarCommand(AVarCommand node)120 public void caseAVarCommand(AVarCommand node) 121 { 122 inAVarCommand(node); 123 if(node.getPosition() != null) 124 { 125 node.getPosition().apply(this); 126 } 127 if(node.getExpression() != null) 128 { 129 node.getExpression().apply(this); 130 } 131 outAVarCommand(node); 132 } 133 inALvarCommand(ALvarCommand node)134 public void inALvarCommand(ALvarCommand node) 135 { 136 defaultIn(node); 137 } 138 outALvarCommand(ALvarCommand node)139 public void outALvarCommand(ALvarCommand node) 140 { 141 defaultOut(node); 142 } 143 144 @Override caseALvarCommand(ALvarCommand node)145 public void caseALvarCommand(ALvarCommand node) 146 { 147 inALvarCommand(node); 148 if(node.getPosition() != null) 149 { 150 node.getPosition().apply(this); 151 } 152 if(node.getExpression() != null) 153 { 154 node.getExpression().apply(this); 155 } 156 outALvarCommand(node); 157 } 158 inAEvarCommand(AEvarCommand node)159 public void inAEvarCommand(AEvarCommand node) 160 { 161 defaultIn(node); 162 } 163 outAEvarCommand(AEvarCommand node)164 public void outAEvarCommand(AEvarCommand node) 165 { 166 defaultOut(node); 167 } 168 169 @Override caseAEvarCommand(AEvarCommand node)170 public void caseAEvarCommand(AEvarCommand node) 171 { 172 inAEvarCommand(node); 173 if(node.getPosition() != null) 174 { 175 node.getPosition().apply(this); 176 } 177 if(node.getExpression() != null) 178 { 179 node.getExpression().apply(this); 180 } 181 outAEvarCommand(node); 182 } 183 inAUvarCommand(AUvarCommand node)184 public void inAUvarCommand(AUvarCommand node) 185 { 186 defaultIn(node); 187 } 188 outAUvarCommand(AUvarCommand node)189 public void outAUvarCommand(AUvarCommand node) 190 { 191 defaultOut(node); 192 } 193 194 @Override caseAUvarCommand(AUvarCommand node)195 public void caseAUvarCommand(AUvarCommand node) 196 { 197 inAUvarCommand(node); 198 if(node.getPosition() != null) 199 { 200 node.getPosition().apply(this); 201 } 202 if(node.getExpression() != null) 203 { 204 node.getExpression().apply(this); 205 } 206 outAUvarCommand(node); 207 } 208 inASetCommand(ASetCommand node)209 public void inASetCommand(ASetCommand node) 210 { 211 defaultIn(node); 212 } 213 outASetCommand(ASetCommand node)214 public void outASetCommand(ASetCommand node) 215 { 216 defaultOut(node); 217 } 218 219 @Override caseASetCommand(ASetCommand node)220 public void caseASetCommand(ASetCommand node) 221 { 222 inASetCommand(node); 223 if(node.getPosition() != null) 224 { 225 node.getPosition().apply(this); 226 } 227 if(node.getVariable() != null) 228 { 229 node.getVariable().apply(this); 230 } 231 if(node.getExpression() != null) 232 { 233 node.getExpression().apply(this); 234 } 235 outASetCommand(node); 236 } 237 inANameCommand(ANameCommand node)238 public void inANameCommand(ANameCommand node) 239 { 240 defaultIn(node); 241 } 242 outANameCommand(ANameCommand node)243 public void outANameCommand(ANameCommand node) 244 { 245 defaultOut(node); 246 } 247 248 @Override caseANameCommand(ANameCommand node)249 public void caseANameCommand(ANameCommand node) 250 { 251 inANameCommand(node); 252 if(node.getPosition() != null) 253 { 254 node.getPosition().apply(this); 255 } 256 if(node.getVariable() != null) 257 { 258 node.getVariable().apply(this); 259 } 260 outANameCommand(node); 261 } 262 inAEscapeCommand(AEscapeCommand node)263 public void inAEscapeCommand(AEscapeCommand node) 264 { 265 defaultIn(node); 266 } 267 outAEscapeCommand(AEscapeCommand node)268 public void outAEscapeCommand(AEscapeCommand node) 269 { 270 defaultOut(node); 271 } 272 273 @Override caseAEscapeCommand(AEscapeCommand node)274 public void caseAEscapeCommand(AEscapeCommand node) 275 { 276 inAEscapeCommand(node); 277 if(node.getPosition() != null) 278 { 279 node.getPosition().apply(this); 280 } 281 if(node.getExpression() != null) 282 { 283 node.getExpression().apply(this); 284 } 285 if(node.getCommand() != null) 286 { 287 node.getCommand().apply(this); 288 } 289 outAEscapeCommand(node); 290 } 291 inAAutoescapeCommand(AAutoescapeCommand node)292 public void inAAutoescapeCommand(AAutoescapeCommand node) 293 { 294 defaultIn(node); 295 } 296 outAAutoescapeCommand(AAutoescapeCommand node)297 public void outAAutoescapeCommand(AAutoescapeCommand node) 298 { 299 defaultOut(node); 300 } 301 302 @Override caseAAutoescapeCommand(AAutoescapeCommand node)303 public void caseAAutoescapeCommand(AAutoescapeCommand node) 304 { 305 inAAutoescapeCommand(node); 306 if(node.getPosition() != null) 307 { 308 node.getPosition().apply(this); 309 } 310 if(node.getExpression() != null) 311 { 312 node.getExpression().apply(this); 313 } 314 if(node.getCommand() != null) 315 { 316 node.getCommand().apply(this); 317 } 318 outAAutoescapeCommand(node); 319 } 320 inAWithCommand(AWithCommand node)321 public void inAWithCommand(AWithCommand node) 322 { 323 defaultIn(node); 324 } 325 outAWithCommand(AWithCommand node)326 public void outAWithCommand(AWithCommand node) 327 { 328 defaultOut(node); 329 } 330 331 @Override caseAWithCommand(AWithCommand node)332 public void caseAWithCommand(AWithCommand node) 333 { 334 inAWithCommand(node); 335 if(node.getPosition() != null) 336 { 337 node.getPosition().apply(this); 338 } 339 if(node.getVariable() != null) 340 { 341 node.getVariable().apply(this); 342 } 343 if(node.getExpression() != null) 344 { 345 node.getExpression().apply(this); 346 } 347 if(node.getCommand() != null) 348 { 349 node.getCommand().apply(this); 350 } 351 outAWithCommand(node); 352 } 353 inALoopToCommand(ALoopToCommand node)354 public void inALoopToCommand(ALoopToCommand node) 355 { 356 defaultIn(node); 357 } 358 outALoopToCommand(ALoopToCommand node)359 public void outALoopToCommand(ALoopToCommand node) 360 { 361 defaultOut(node); 362 } 363 364 @Override caseALoopToCommand(ALoopToCommand node)365 public void caseALoopToCommand(ALoopToCommand node) 366 { 367 inALoopToCommand(node); 368 if(node.getPosition() != null) 369 { 370 node.getPosition().apply(this); 371 } 372 if(node.getVariable() != null) 373 { 374 node.getVariable().apply(this); 375 } 376 if(node.getExpression() != null) 377 { 378 node.getExpression().apply(this); 379 } 380 if(node.getCommand() != null) 381 { 382 node.getCommand().apply(this); 383 } 384 outALoopToCommand(node); 385 } 386 inALoopCommand(ALoopCommand node)387 public void inALoopCommand(ALoopCommand node) 388 { 389 defaultIn(node); 390 } 391 outALoopCommand(ALoopCommand node)392 public void outALoopCommand(ALoopCommand node) 393 { 394 defaultOut(node); 395 } 396 397 @Override caseALoopCommand(ALoopCommand node)398 public void caseALoopCommand(ALoopCommand node) 399 { 400 inALoopCommand(node); 401 if(node.getPosition() != null) 402 { 403 node.getPosition().apply(this); 404 } 405 if(node.getVariable() != null) 406 { 407 node.getVariable().apply(this); 408 } 409 if(node.getStart() != null) 410 { 411 node.getStart().apply(this); 412 } 413 if(node.getEnd() != null) 414 { 415 node.getEnd().apply(this); 416 } 417 if(node.getCommand() != null) 418 { 419 node.getCommand().apply(this); 420 } 421 outALoopCommand(node); 422 } 423 inALoopIncCommand(ALoopIncCommand node)424 public void inALoopIncCommand(ALoopIncCommand node) 425 { 426 defaultIn(node); 427 } 428 outALoopIncCommand(ALoopIncCommand node)429 public void outALoopIncCommand(ALoopIncCommand node) 430 { 431 defaultOut(node); 432 } 433 434 @Override caseALoopIncCommand(ALoopIncCommand node)435 public void caseALoopIncCommand(ALoopIncCommand node) 436 { 437 inALoopIncCommand(node); 438 if(node.getPosition() != null) 439 { 440 node.getPosition().apply(this); 441 } 442 if(node.getVariable() != null) 443 { 444 node.getVariable().apply(this); 445 } 446 if(node.getStart() != null) 447 { 448 node.getStart().apply(this); 449 } 450 if(node.getEnd() != null) 451 { 452 node.getEnd().apply(this); 453 } 454 if(node.getIncrement() != null) 455 { 456 node.getIncrement().apply(this); 457 } 458 if(node.getCommand() != null) 459 { 460 node.getCommand().apply(this); 461 } 462 outALoopIncCommand(node); 463 } 464 inAEachCommand(AEachCommand node)465 public void inAEachCommand(AEachCommand node) 466 { 467 defaultIn(node); 468 } 469 outAEachCommand(AEachCommand node)470 public void outAEachCommand(AEachCommand node) 471 { 472 defaultOut(node); 473 } 474 475 @Override caseAEachCommand(AEachCommand node)476 public void caseAEachCommand(AEachCommand node) 477 { 478 inAEachCommand(node); 479 if(node.getPosition() != null) 480 { 481 node.getPosition().apply(this); 482 } 483 if(node.getVariable() != null) 484 { 485 node.getVariable().apply(this); 486 } 487 if(node.getExpression() != null) 488 { 489 node.getExpression().apply(this); 490 } 491 if(node.getCommand() != null) 492 { 493 node.getCommand().apply(this); 494 } 495 outAEachCommand(node); 496 } 497 inADefCommand(ADefCommand node)498 public void inADefCommand(ADefCommand node) 499 { 500 defaultIn(node); 501 } 502 outADefCommand(ADefCommand node)503 public void outADefCommand(ADefCommand node) 504 { 505 defaultOut(node); 506 } 507 508 @Override caseADefCommand(ADefCommand node)509 public void caseADefCommand(ADefCommand node) 510 { 511 inADefCommand(node); 512 if(node.getPosition() != null) 513 { 514 node.getPosition().apply(this); 515 } 516 { 517 List<TWord> copy = new ArrayList<TWord>(node.getMacro()); 518 for(TWord e : copy) 519 { 520 e.apply(this); 521 } 522 } 523 { 524 List<PVariable> copy = new ArrayList<PVariable>(node.getArguments()); 525 for(PVariable e : copy) 526 { 527 e.apply(this); 528 } 529 } 530 if(node.getCommand() != null) 531 { 532 node.getCommand().apply(this); 533 } 534 outADefCommand(node); 535 } 536 inACallCommand(ACallCommand node)537 public void inACallCommand(ACallCommand node) 538 { 539 defaultIn(node); 540 } 541 outACallCommand(ACallCommand node)542 public void outACallCommand(ACallCommand node) 543 { 544 defaultOut(node); 545 } 546 547 @Override caseACallCommand(ACallCommand node)548 public void caseACallCommand(ACallCommand node) 549 { 550 inACallCommand(node); 551 if(node.getPosition() != null) 552 { 553 node.getPosition().apply(this); 554 } 555 { 556 List<TWord> copy = new ArrayList<TWord>(node.getMacro()); 557 for(TWord e : copy) 558 { 559 e.apply(this); 560 } 561 } 562 { 563 List<PExpression> copy = new ArrayList<PExpression>(node.getArguments()); 564 for(PExpression e : copy) 565 { 566 e.apply(this); 567 } 568 } 569 outACallCommand(node); 570 } 571 inAIfCommand(AIfCommand node)572 public void inAIfCommand(AIfCommand node) 573 { 574 defaultIn(node); 575 } 576 outAIfCommand(AIfCommand node)577 public void outAIfCommand(AIfCommand node) 578 { 579 defaultOut(node); 580 } 581 582 @Override caseAIfCommand(AIfCommand node)583 public void caseAIfCommand(AIfCommand node) 584 { 585 inAIfCommand(node); 586 if(node.getPosition() != null) 587 { 588 node.getPosition().apply(this); 589 } 590 if(node.getExpression() != null) 591 { 592 node.getExpression().apply(this); 593 } 594 if(node.getBlock() != null) 595 { 596 node.getBlock().apply(this); 597 } 598 if(node.getOtherwise() != null) 599 { 600 node.getOtherwise().apply(this); 601 } 602 outAIfCommand(node); 603 } 604 inAAltCommand(AAltCommand node)605 public void inAAltCommand(AAltCommand node) 606 { 607 defaultIn(node); 608 } 609 outAAltCommand(AAltCommand node)610 public void outAAltCommand(AAltCommand node) 611 { 612 defaultOut(node); 613 } 614 615 @Override caseAAltCommand(AAltCommand node)616 public void caseAAltCommand(AAltCommand node) 617 { 618 inAAltCommand(node); 619 if(node.getPosition() != null) 620 { 621 node.getPosition().apply(this); 622 } 623 if(node.getExpression() != null) 624 { 625 node.getExpression().apply(this); 626 } 627 if(node.getCommand() != null) 628 { 629 node.getCommand().apply(this); 630 } 631 outAAltCommand(node); 632 } 633 inAIncludeCommand(AIncludeCommand node)634 public void inAIncludeCommand(AIncludeCommand node) 635 { 636 defaultIn(node); 637 } 638 outAIncludeCommand(AIncludeCommand node)639 public void outAIncludeCommand(AIncludeCommand node) 640 { 641 defaultOut(node); 642 } 643 644 @Override caseAIncludeCommand(AIncludeCommand node)645 public void caseAIncludeCommand(AIncludeCommand node) 646 { 647 inAIncludeCommand(node); 648 if(node.getPosition() != null) 649 { 650 node.getPosition().apply(this); 651 } 652 if(node.getExpression() != null) 653 { 654 node.getExpression().apply(this); 655 } 656 outAIncludeCommand(node); 657 } 658 inAHardIncludeCommand(AHardIncludeCommand node)659 public void inAHardIncludeCommand(AHardIncludeCommand node) 660 { 661 defaultIn(node); 662 } 663 outAHardIncludeCommand(AHardIncludeCommand node)664 public void outAHardIncludeCommand(AHardIncludeCommand node) 665 { 666 defaultOut(node); 667 } 668 669 @Override caseAHardIncludeCommand(AHardIncludeCommand node)670 public void caseAHardIncludeCommand(AHardIncludeCommand node) 671 { 672 inAHardIncludeCommand(node); 673 if(node.getPosition() != null) 674 { 675 node.getPosition().apply(this); 676 } 677 if(node.getExpression() != null) 678 { 679 node.getExpression().apply(this); 680 } 681 outAHardIncludeCommand(node); 682 } 683 inALincludeCommand(ALincludeCommand node)684 public void inALincludeCommand(ALincludeCommand node) 685 { 686 defaultIn(node); 687 } 688 outALincludeCommand(ALincludeCommand node)689 public void outALincludeCommand(ALincludeCommand node) 690 { 691 defaultOut(node); 692 } 693 694 @Override caseALincludeCommand(ALincludeCommand node)695 public void caseALincludeCommand(ALincludeCommand node) 696 { 697 inALincludeCommand(node); 698 if(node.getPosition() != null) 699 { 700 node.getPosition().apply(this); 701 } 702 if(node.getExpression() != null) 703 { 704 node.getExpression().apply(this); 705 } 706 outALincludeCommand(node); 707 } 708 inAHardLincludeCommand(AHardLincludeCommand node)709 public void inAHardLincludeCommand(AHardLincludeCommand node) 710 { 711 defaultIn(node); 712 } 713 outAHardLincludeCommand(AHardLincludeCommand node)714 public void outAHardLincludeCommand(AHardLincludeCommand node) 715 { 716 defaultOut(node); 717 } 718 719 @Override caseAHardLincludeCommand(AHardLincludeCommand node)720 public void caseAHardLincludeCommand(AHardLincludeCommand node) 721 { 722 inAHardLincludeCommand(node); 723 if(node.getPosition() != null) 724 { 725 node.getPosition().apply(this); 726 } 727 if(node.getExpression() != null) 728 { 729 node.getExpression().apply(this); 730 } 731 outAHardLincludeCommand(node); 732 } 733 inAContentTypeCommand(AContentTypeCommand node)734 public void inAContentTypeCommand(AContentTypeCommand node) 735 { 736 defaultIn(node); 737 } 738 outAContentTypeCommand(AContentTypeCommand node)739 public void outAContentTypeCommand(AContentTypeCommand node) 740 { 741 defaultOut(node); 742 } 743 744 @Override caseAContentTypeCommand(AContentTypeCommand node)745 public void caseAContentTypeCommand(AContentTypeCommand node) 746 { 747 inAContentTypeCommand(node); 748 if(node.getPosition() != null) 749 { 750 node.getPosition().apply(this); 751 } 752 if(node.getString() != null) 753 { 754 node.getString().apply(this); 755 } 756 outAContentTypeCommand(node); 757 } 758 inAInlineCommand(AInlineCommand node)759 public void inAInlineCommand(AInlineCommand node) 760 { 761 defaultIn(node); 762 } 763 outAInlineCommand(AInlineCommand node)764 public void outAInlineCommand(AInlineCommand node) 765 { 766 defaultOut(node); 767 } 768 769 @Override caseAInlineCommand(AInlineCommand node)770 public void caseAInlineCommand(AInlineCommand node) 771 { 772 inAInlineCommand(node); 773 if(node.getPosition() != null) 774 { 775 node.getPosition().apply(this); 776 } 777 if(node.getCommand() != null) 778 { 779 node.getCommand().apply(this); 780 } 781 outAInlineCommand(node); 782 } 783 inANoopCommand(ANoopCommand node)784 public void inANoopCommand(ANoopCommand node) 785 { 786 defaultIn(node); 787 } 788 outANoopCommand(ANoopCommand node)789 public void outANoopCommand(ANoopCommand node) 790 { 791 defaultOut(node); 792 } 793 794 @Override caseANoopCommand(ANoopCommand node)795 public void caseANoopCommand(ANoopCommand node) 796 { 797 inANoopCommand(node); 798 outANoopCommand(node); 799 } 800 inACsOpenPosition(ACsOpenPosition node)801 public void inACsOpenPosition(ACsOpenPosition node) 802 { 803 defaultIn(node); 804 } 805 outACsOpenPosition(ACsOpenPosition node)806 public void outACsOpenPosition(ACsOpenPosition node) 807 { 808 defaultOut(node); 809 } 810 811 @Override caseACsOpenPosition(ACsOpenPosition node)812 public void caseACsOpenPosition(ACsOpenPosition node) 813 { 814 inACsOpenPosition(node); 815 if(node.getCsOpen() != null) 816 { 817 node.getCsOpen().apply(this); 818 } 819 outACsOpenPosition(node); 820 } 821 inAStringExpression(AStringExpression node)822 public void inAStringExpression(AStringExpression node) 823 { 824 defaultIn(node); 825 } 826 outAStringExpression(AStringExpression node)827 public void outAStringExpression(AStringExpression node) 828 { 829 defaultOut(node); 830 } 831 832 @Override caseAStringExpression(AStringExpression node)833 public void caseAStringExpression(AStringExpression node) 834 { 835 inAStringExpression(node); 836 if(node.getValue() != null) 837 { 838 node.getValue().apply(this); 839 } 840 outAStringExpression(node); 841 } 842 inANumericExpression(ANumericExpression node)843 public void inANumericExpression(ANumericExpression node) 844 { 845 defaultIn(node); 846 } 847 outANumericExpression(ANumericExpression node)848 public void outANumericExpression(ANumericExpression node) 849 { 850 defaultOut(node); 851 } 852 853 @Override caseANumericExpression(ANumericExpression node)854 public void caseANumericExpression(ANumericExpression node) 855 { 856 inANumericExpression(node); 857 if(node.getExpression() != null) 858 { 859 node.getExpression().apply(this); 860 } 861 outANumericExpression(node); 862 } 863 inADecimalExpression(ADecimalExpression node)864 public void inADecimalExpression(ADecimalExpression node) 865 { 866 defaultIn(node); 867 } 868 outADecimalExpression(ADecimalExpression node)869 public void outADecimalExpression(ADecimalExpression node) 870 { 871 defaultOut(node); 872 } 873 874 @Override caseADecimalExpression(ADecimalExpression node)875 public void caseADecimalExpression(ADecimalExpression node) 876 { 877 inADecimalExpression(node); 878 if(node.getValue() != null) 879 { 880 node.getValue().apply(this); 881 } 882 outADecimalExpression(node); 883 } 884 inAHexExpression(AHexExpression node)885 public void inAHexExpression(AHexExpression node) 886 { 887 defaultIn(node); 888 } 889 outAHexExpression(AHexExpression node)890 public void outAHexExpression(AHexExpression node) 891 { 892 defaultOut(node); 893 } 894 895 @Override caseAHexExpression(AHexExpression node)896 public void caseAHexExpression(AHexExpression node) 897 { 898 inAHexExpression(node); 899 if(node.getValue() != null) 900 { 901 node.getValue().apply(this); 902 } 903 outAHexExpression(node); 904 } 905 inAVariableExpression(AVariableExpression node)906 public void inAVariableExpression(AVariableExpression node) 907 { 908 defaultIn(node); 909 } 910 outAVariableExpression(AVariableExpression node)911 public void outAVariableExpression(AVariableExpression node) 912 { 913 defaultOut(node); 914 } 915 916 @Override caseAVariableExpression(AVariableExpression node)917 public void caseAVariableExpression(AVariableExpression node) 918 { 919 inAVariableExpression(node); 920 if(node.getVariable() != null) 921 { 922 node.getVariable().apply(this); 923 } 924 outAVariableExpression(node); 925 } 926 inAFunctionExpression(AFunctionExpression node)927 public void inAFunctionExpression(AFunctionExpression node) 928 { 929 defaultIn(node); 930 } 931 outAFunctionExpression(AFunctionExpression node)932 public void outAFunctionExpression(AFunctionExpression node) 933 { 934 defaultOut(node); 935 } 936 937 @Override caseAFunctionExpression(AFunctionExpression node)938 public void caseAFunctionExpression(AFunctionExpression node) 939 { 940 inAFunctionExpression(node); 941 if(node.getName() != null) 942 { 943 node.getName().apply(this); 944 } 945 { 946 List<PExpression> copy = new ArrayList<PExpression>(node.getArgs()); 947 for(PExpression e : copy) 948 { 949 e.apply(this); 950 } 951 } 952 outAFunctionExpression(node); 953 } 954 inASequenceExpression(ASequenceExpression node)955 public void inASequenceExpression(ASequenceExpression node) 956 { 957 defaultIn(node); 958 } 959 outASequenceExpression(ASequenceExpression node)960 public void outASequenceExpression(ASequenceExpression node) 961 { 962 defaultOut(node); 963 } 964 965 @Override caseASequenceExpression(ASequenceExpression node)966 public void caseASequenceExpression(ASequenceExpression node) 967 { 968 inASequenceExpression(node); 969 { 970 List<PExpression> copy = new ArrayList<PExpression>(node.getArgs()); 971 for(PExpression e : copy) 972 { 973 e.apply(this); 974 } 975 } 976 outASequenceExpression(node); 977 } 978 inANegativeExpression(ANegativeExpression node)979 public void inANegativeExpression(ANegativeExpression node) 980 { 981 defaultIn(node); 982 } 983 outANegativeExpression(ANegativeExpression node)984 public void outANegativeExpression(ANegativeExpression node) 985 { 986 defaultOut(node); 987 } 988 989 @Override caseANegativeExpression(ANegativeExpression node)990 public void caseANegativeExpression(ANegativeExpression node) 991 { 992 inANegativeExpression(node); 993 if(node.getExpression() != null) 994 { 995 node.getExpression().apply(this); 996 } 997 outANegativeExpression(node); 998 } 999 inANotExpression(ANotExpression node)1000 public void inANotExpression(ANotExpression node) 1001 { 1002 defaultIn(node); 1003 } 1004 outANotExpression(ANotExpression node)1005 public void outANotExpression(ANotExpression node) 1006 { 1007 defaultOut(node); 1008 } 1009 1010 @Override caseANotExpression(ANotExpression node)1011 public void caseANotExpression(ANotExpression node) 1012 { 1013 inANotExpression(node); 1014 if(node.getExpression() != null) 1015 { 1016 node.getExpression().apply(this); 1017 } 1018 outANotExpression(node); 1019 } 1020 inAExistsExpression(AExistsExpression node)1021 public void inAExistsExpression(AExistsExpression node) 1022 { 1023 defaultIn(node); 1024 } 1025 outAExistsExpression(AExistsExpression node)1026 public void outAExistsExpression(AExistsExpression node) 1027 { 1028 defaultOut(node); 1029 } 1030 1031 @Override caseAExistsExpression(AExistsExpression node)1032 public void caseAExistsExpression(AExistsExpression node) 1033 { 1034 inAExistsExpression(node); 1035 if(node.getExpression() != null) 1036 { 1037 node.getExpression().apply(this); 1038 } 1039 outAExistsExpression(node); 1040 } 1041 inACommaExpression(ACommaExpression node)1042 public void inACommaExpression(ACommaExpression node) 1043 { 1044 defaultIn(node); 1045 } 1046 outACommaExpression(ACommaExpression node)1047 public void outACommaExpression(ACommaExpression node) 1048 { 1049 defaultOut(node); 1050 } 1051 1052 @Override caseACommaExpression(ACommaExpression node)1053 public void caseACommaExpression(ACommaExpression node) 1054 { 1055 inACommaExpression(node); 1056 if(node.getLeft() != null) 1057 { 1058 node.getLeft().apply(this); 1059 } 1060 if(node.getRight() != null) 1061 { 1062 node.getRight().apply(this); 1063 } 1064 outACommaExpression(node); 1065 } 1066 inAEqExpression(AEqExpression node)1067 public void inAEqExpression(AEqExpression node) 1068 { 1069 defaultIn(node); 1070 } 1071 outAEqExpression(AEqExpression node)1072 public void outAEqExpression(AEqExpression node) 1073 { 1074 defaultOut(node); 1075 } 1076 1077 @Override caseAEqExpression(AEqExpression node)1078 public void caseAEqExpression(AEqExpression node) 1079 { 1080 inAEqExpression(node); 1081 if(node.getLeft() != null) 1082 { 1083 node.getLeft().apply(this); 1084 } 1085 if(node.getRight() != null) 1086 { 1087 node.getRight().apply(this); 1088 } 1089 outAEqExpression(node); 1090 } 1091 inANumericEqExpression(ANumericEqExpression node)1092 public void inANumericEqExpression(ANumericEqExpression node) 1093 { 1094 defaultIn(node); 1095 } 1096 outANumericEqExpression(ANumericEqExpression node)1097 public void outANumericEqExpression(ANumericEqExpression node) 1098 { 1099 defaultOut(node); 1100 } 1101 1102 @Override caseANumericEqExpression(ANumericEqExpression node)1103 public void caseANumericEqExpression(ANumericEqExpression node) 1104 { 1105 inANumericEqExpression(node); 1106 if(node.getLeft() != null) 1107 { 1108 node.getLeft().apply(this); 1109 } 1110 if(node.getRight() != null) 1111 { 1112 node.getRight().apply(this); 1113 } 1114 outANumericEqExpression(node); 1115 } 1116 inANeExpression(ANeExpression node)1117 public void inANeExpression(ANeExpression node) 1118 { 1119 defaultIn(node); 1120 } 1121 outANeExpression(ANeExpression node)1122 public void outANeExpression(ANeExpression node) 1123 { 1124 defaultOut(node); 1125 } 1126 1127 @Override caseANeExpression(ANeExpression node)1128 public void caseANeExpression(ANeExpression node) 1129 { 1130 inANeExpression(node); 1131 if(node.getLeft() != null) 1132 { 1133 node.getLeft().apply(this); 1134 } 1135 if(node.getRight() != null) 1136 { 1137 node.getRight().apply(this); 1138 } 1139 outANeExpression(node); 1140 } 1141 inANumericNeExpression(ANumericNeExpression node)1142 public void inANumericNeExpression(ANumericNeExpression node) 1143 { 1144 defaultIn(node); 1145 } 1146 outANumericNeExpression(ANumericNeExpression node)1147 public void outANumericNeExpression(ANumericNeExpression node) 1148 { 1149 defaultOut(node); 1150 } 1151 1152 @Override caseANumericNeExpression(ANumericNeExpression node)1153 public void caseANumericNeExpression(ANumericNeExpression node) 1154 { 1155 inANumericNeExpression(node); 1156 if(node.getLeft() != null) 1157 { 1158 node.getLeft().apply(this); 1159 } 1160 if(node.getRight() != null) 1161 { 1162 node.getRight().apply(this); 1163 } 1164 outANumericNeExpression(node); 1165 } 1166 inALtExpression(ALtExpression node)1167 public void inALtExpression(ALtExpression node) 1168 { 1169 defaultIn(node); 1170 } 1171 outALtExpression(ALtExpression node)1172 public void outALtExpression(ALtExpression node) 1173 { 1174 defaultOut(node); 1175 } 1176 1177 @Override caseALtExpression(ALtExpression node)1178 public void caseALtExpression(ALtExpression node) 1179 { 1180 inALtExpression(node); 1181 if(node.getLeft() != null) 1182 { 1183 node.getLeft().apply(this); 1184 } 1185 if(node.getRight() != null) 1186 { 1187 node.getRight().apply(this); 1188 } 1189 outALtExpression(node); 1190 } 1191 inAGtExpression(AGtExpression node)1192 public void inAGtExpression(AGtExpression node) 1193 { 1194 defaultIn(node); 1195 } 1196 outAGtExpression(AGtExpression node)1197 public void outAGtExpression(AGtExpression node) 1198 { 1199 defaultOut(node); 1200 } 1201 1202 @Override caseAGtExpression(AGtExpression node)1203 public void caseAGtExpression(AGtExpression node) 1204 { 1205 inAGtExpression(node); 1206 if(node.getLeft() != null) 1207 { 1208 node.getLeft().apply(this); 1209 } 1210 if(node.getRight() != null) 1211 { 1212 node.getRight().apply(this); 1213 } 1214 outAGtExpression(node); 1215 } 1216 inALteExpression(ALteExpression node)1217 public void inALteExpression(ALteExpression node) 1218 { 1219 defaultIn(node); 1220 } 1221 outALteExpression(ALteExpression node)1222 public void outALteExpression(ALteExpression node) 1223 { 1224 defaultOut(node); 1225 } 1226 1227 @Override caseALteExpression(ALteExpression node)1228 public void caseALteExpression(ALteExpression node) 1229 { 1230 inALteExpression(node); 1231 if(node.getLeft() != null) 1232 { 1233 node.getLeft().apply(this); 1234 } 1235 if(node.getRight() != null) 1236 { 1237 node.getRight().apply(this); 1238 } 1239 outALteExpression(node); 1240 } 1241 inAGteExpression(AGteExpression node)1242 public void inAGteExpression(AGteExpression node) 1243 { 1244 defaultIn(node); 1245 } 1246 outAGteExpression(AGteExpression node)1247 public void outAGteExpression(AGteExpression node) 1248 { 1249 defaultOut(node); 1250 } 1251 1252 @Override caseAGteExpression(AGteExpression node)1253 public void caseAGteExpression(AGteExpression node) 1254 { 1255 inAGteExpression(node); 1256 if(node.getLeft() != null) 1257 { 1258 node.getLeft().apply(this); 1259 } 1260 if(node.getRight() != null) 1261 { 1262 node.getRight().apply(this); 1263 } 1264 outAGteExpression(node); 1265 } 1266 inAAndExpression(AAndExpression node)1267 public void inAAndExpression(AAndExpression node) 1268 { 1269 defaultIn(node); 1270 } 1271 outAAndExpression(AAndExpression node)1272 public void outAAndExpression(AAndExpression node) 1273 { 1274 defaultOut(node); 1275 } 1276 1277 @Override caseAAndExpression(AAndExpression node)1278 public void caseAAndExpression(AAndExpression node) 1279 { 1280 inAAndExpression(node); 1281 if(node.getLeft() != null) 1282 { 1283 node.getLeft().apply(this); 1284 } 1285 if(node.getRight() != null) 1286 { 1287 node.getRight().apply(this); 1288 } 1289 outAAndExpression(node); 1290 } 1291 inAOrExpression(AOrExpression node)1292 public void inAOrExpression(AOrExpression node) 1293 { 1294 defaultIn(node); 1295 } 1296 outAOrExpression(AOrExpression node)1297 public void outAOrExpression(AOrExpression node) 1298 { 1299 defaultOut(node); 1300 } 1301 1302 @Override caseAOrExpression(AOrExpression node)1303 public void caseAOrExpression(AOrExpression node) 1304 { 1305 inAOrExpression(node); 1306 if(node.getLeft() != null) 1307 { 1308 node.getLeft().apply(this); 1309 } 1310 if(node.getRight() != null) 1311 { 1312 node.getRight().apply(this); 1313 } 1314 outAOrExpression(node); 1315 } 1316 inAAddExpression(AAddExpression node)1317 public void inAAddExpression(AAddExpression node) 1318 { 1319 defaultIn(node); 1320 } 1321 outAAddExpression(AAddExpression node)1322 public void outAAddExpression(AAddExpression node) 1323 { 1324 defaultOut(node); 1325 } 1326 1327 @Override caseAAddExpression(AAddExpression node)1328 public void caseAAddExpression(AAddExpression node) 1329 { 1330 inAAddExpression(node); 1331 if(node.getLeft() != null) 1332 { 1333 node.getLeft().apply(this); 1334 } 1335 if(node.getRight() != null) 1336 { 1337 node.getRight().apply(this); 1338 } 1339 outAAddExpression(node); 1340 } 1341 inANumericAddExpression(ANumericAddExpression node)1342 public void inANumericAddExpression(ANumericAddExpression node) 1343 { 1344 defaultIn(node); 1345 } 1346 outANumericAddExpression(ANumericAddExpression node)1347 public void outANumericAddExpression(ANumericAddExpression node) 1348 { 1349 defaultOut(node); 1350 } 1351 1352 @Override caseANumericAddExpression(ANumericAddExpression node)1353 public void caseANumericAddExpression(ANumericAddExpression node) 1354 { 1355 inANumericAddExpression(node); 1356 if(node.getLeft() != null) 1357 { 1358 node.getLeft().apply(this); 1359 } 1360 if(node.getRight() != null) 1361 { 1362 node.getRight().apply(this); 1363 } 1364 outANumericAddExpression(node); 1365 } 1366 inASubtractExpression(ASubtractExpression node)1367 public void inASubtractExpression(ASubtractExpression node) 1368 { 1369 defaultIn(node); 1370 } 1371 outASubtractExpression(ASubtractExpression node)1372 public void outASubtractExpression(ASubtractExpression node) 1373 { 1374 defaultOut(node); 1375 } 1376 1377 @Override caseASubtractExpression(ASubtractExpression node)1378 public void caseASubtractExpression(ASubtractExpression node) 1379 { 1380 inASubtractExpression(node); 1381 if(node.getLeft() != null) 1382 { 1383 node.getLeft().apply(this); 1384 } 1385 if(node.getRight() != null) 1386 { 1387 node.getRight().apply(this); 1388 } 1389 outASubtractExpression(node); 1390 } 1391 inAMultiplyExpression(AMultiplyExpression node)1392 public void inAMultiplyExpression(AMultiplyExpression node) 1393 { 1394 defaultIn(node); 1395 } 1396 outAMultiplyExpression(AMultiplyExpression node)1397 public void outAMultiplyExpression(AMultiplyExpression node) 1398 { 1399 defaultOut(node); 1400 } 1401 1402 @Override caseAMultiplyExpression(AMultiplyExpression node)1403 public void caseAMultiplyExpression(AMultiplyExpression node) 1404 { 1405 inAMultiplyExpression(node); 1406 if(node.getLeft() != null) 1407 { 1408 node.getLeft().apply(this); 1409 } 1410 if(node.getRight() != null) 1411 { 1412 node.getRight().apply(this); 1413 } 1414 outAMultiplyExpression(node); 1415 } 1416 inADivideExpression(ADivideExpression node)1417 public void inADivideExpression(ADivideExpression node) 1418 { 1419 defaultIn(node); 1420 } 1421 outADivideExpression(ADivideExpression node)1422 public void outADivideExpression(ADivideExpression node) 1423 { 1424 defaultOut(node); 1425 } 1426 1427 @Override caseADivideExpression(ADivideExpression node)1428 public void caseADivideExpression(ADivideExpression node) 1429 { 1430 inADivideExpression(node); 1431 if(node.getLeft() != null) 1432 { 1433 node.getLeft().apply(this); 1434 } 1435 if(node.getRight() != null) 1436 { 1437 node.getRight().apply(this); 1438 } 1439 outADivideExpression(node); 1440 } 1441 inAModuloExpression(AModuloExpression node)1442 public void inAModuloExpression(AModuloExpression node) 1443 { 1444 defaultIn(node); 1445 } 1446 outAModuloExpression(AModuloExpression node)1447 public void outAModuloExpression(AModuloExpression node) 1448 { 1449 defaultOut(node); 1450 } 1451 1452 @Override caseAModuloExpression(AModuloExpression node)1453 public void caseAModuloExpression(AModuloExpression node) 1454 { 1455 inAModuloExpression(node); 1456 if(node.getLeft() != null) 1457 { 1458 node.getLeft().apply(this); 1459 } 1460 if(node.getRight() != null) 1461 { 1462 node.getRight().apply(this); 1463 } 1464 outAModuloExpression(node); 1465 } 1466 inANoopExpression(ANoopExpression node)1467 public void inANoopExpression(ANoopExpression node) 1468 { 1469 defaultIn(node); 1470 } 1471 outANoopExpression(ANoopExpression node)1472 public void outANoopExpression(ANoopExpression node) 1473 { 1474 defaultOut(node); 1475 } 1476 1477 @Override caseANoopExpression(ANoopExpression node)1478 public void caseANoopExpression(ANoopExpression node) 1479 { 1480 inANoopExpression(node); 1481 outANoopExpression(node); 1482 } 1483 inANameVariable(ANameVariable node)1484 public void inANameVariable(ANameVariable node) 1485 { 1486 defaultIn(node); 1487 } 1488 outANameVariable(ANameVariable node)1489 public void outANameVariable(ANameVariable node) 1490 { 1491 defaultOut(node); 1492 } 1493 1494 @Override caseANameVariable(ANameVariable node)1495 public void caseANameVariable(ANameVariable node) 1496 { 1497 inANameVariable(node); 1498 if(node.getWord() != null) 1499 { 1500 node.getWord().apply(this); 1501 } 1502 outANameVariable(node); 1503 } 1504 inADecNumberVariable(ADecNumberVariable node)1505 public void inADecNumberVariable(ADecNumberVariable node) 1506 { 1507 defaultIn(node); 1508 } 1509 outADecNumberVariable(ADecNumberVariable node)1510 public void outADecNumberVariable(ADecNumberVariable node) 1511 { 1512 defaultOut(node); 1513 } 1514 1515 @Override caseADecNumberVariable(ADecNumberVariable node)1516 public void caseADecNumberVariable(ADecNumberVariable node) 1517 { 1518 inADecNumberVariable(node); 1519 if(node.getDecNumber() != null) 1520 { 1521 node.getDecNumber().apply(this); 1522 } 1523 outADecNumberVariable(node); 1524 } 1525 inAHexNumberVariable(AHexNumberVariable node)1526 public void inAHexNumberVariable(AHexNumberVariable node) 1527 { 1528 defaultIn(node); 1529 } 1530 outAHexNumberVariable(AHexNumberVariable node)1531 public void outAHexNumberVariable(AHexNumberVariable node) 1532 { 1533 defaultOut(node); 1534 } 1535 1536 @Override caseAHexNumberVariable(AHexNumberVariable node)1537 public void caseAHexNumberVariable(AHexNumberVariable node) 1538 { 1539 inAHexNumberVariable(node); 1540 if(node.getHexNumber() != null) 1541 { 1542 node.getHexNumber().apply(this); 1543 } 1544 outAHexNumberVariable(node); 1545 } 1546 inADescendVariable(ADescendVariable node)1547 public void inADescendVariable(ADescendVariable node) 1548 { 1549 defaultIn(node); 1550 } 1551 outADescendVariable(ADescendVariable node)1552 public void outADescendVariable(ADescendVariable node) 1553 { 1554 defaultOut(node); 1555 } 1556 1557 @Override caseADescendVariable(ADescendVariable node)1558 public void caseADescendVariable(ADescendVariable node) 1559 { 1560 inADescendVariable(node); 1561 if(node.getParent() != null) 1562 { 1563 node.getParent().apply(this); 1564 } 1565 if(node.getChild() != null) 1566 { 1567 node.getChild().apply(this); 1568 } 1569 outADescendVariable(node); 1570 } 1571 inAExpandVariable(AExpandVariable node)1572 public void inAExpandVariable(AExpandVariable node) 1573 { 1574 defaultIn(node); 1575 } 1576 outAExpandVariable(AExpandVariable node)1577 public void outAExpandVariable(AExpandVariable node) 1578 { 1579 defaultOut(node); 1580 } 1581 1582 @Override caseAExpandVariable(AExpandVariable node)1583 public void caseAExpandVariable(AExpandVariable node) 1584 { 1585 inAExpandVariable(node); 1586 if(node.getParent() != null) 1587 { 1588 node.getParent().apply(this); 1589 } 1590 if(node.getChild() != null) 1591 { 1592 node.getChild().apply(this); 1593 } 1594 outAExpandVariable(node); 1595 } 1596 } 1597