Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ReversedDepthFirstAdapter.java

00001 package edu.ksu.cis.bandera.specification.assertion.analysis;
00002 
00003 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00004  * Bandera, a Java(TM) analysis and transformation toolkit           *
00005  * Copyright (C) 1998-2001 SAnToS Laboratories (santos@cis.ksu.edu)  *
00006 
00007  * All rights reserved.                                              *
00008  *                                                                   *
00009  * This work was done as a project in the SAnToS Laboratory,         *
00010  * Department of Computing and Information Sciences, Kansas State    *
00011  * University, USA (http://www.cis.ksu.edu/santos).                  *
00012  * It is understood that any modification not identified as such is  *
00013  * not covered by the preceding statement.                           *
00014  *                                                                   *
00015  * This work is free software; you can redistribute it and/or        *
00016  * modify it under the terms of the GNU Library General Public       *
00017  * License as published by the Free Software Foundation; either      *
00018  * version 2 of the License, or (at your option) any later version.  *
00019  *                                                                   *
00020  * This work is distributed in the hope that it will be useful,      *
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of    *
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU *
00023  * Library General Public License for more details.                  *
00024  *                                                                   *
00025  * You should have received a copy of the GNU Library General Public *
00026  * License along with this toolkit; if not, write to the             *
00027  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,      *
00028  * Boston, MA  02111-1307, USA.                                      *
00029  *                                                                   *
00030  * Java is a trademark of Sun Microsystems, Inc.                     *
00031  *                                                                   *
00032  * To submit a bug report, send a comment, or get the latest news on *
00033  * this project and other SAnToS projects, please visit the web-site *
00034  *                http://www.cis.ksu.edu/santos                      *
00035  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00036 /* This file was generated by SableCC (http://www.sable.mcgill.ca/sablecc/). */
00037 
00038 import edu.ksu.cis.bandera.specification.assertion.node.*;
00039 
00040 public class ReversedDepthFirstAdapter extends AnalysisAdapter
00041 {
00042     public void caseAEndOfLineComment(AEndOfLineComment node)
00043     {
00044         inAEndOfLineComment(node);
00045         if(node.getEndOfLineComment() != null)
00046         {
00047             node.getEndOfLineComment().apply(this);
00048         }
00049         outAEndOfLineComment(node);
00050     }
00051     public void caseALocationAssertion(ALocationAssertion node)
00052     {
00053         inALocationAssertion(node);
00054         {
00055             Object temp[] = node.getComment().toArray();
00056             for(int i = temp.length - 1; i >= 0; i--)
00057             {
00058                 ((PComment) temp[i]).apply(this);
00059             }
00060         }
00061         if(node.getSemicolon() != null)
00062         {
00063             node.getSemicolon().apply(this);
00064         }
00065         if(node.getColon() != null)
00066         {
00067             node.getColon().apply(this);
00068         }
00069         if(node.getId() != null)
00070         {
00071             node.getId().apply(this);
00072         }
00073         if(node.getRBracket() != null)
00074         {
00075             node.getRBracket().apply(this);
00076         }
00077         if(node.getLabel() != null)
00078         {
00079             node.getLabel().apply(this);
00080         }
00081         if(node.getLBracket() != null)
00082         {
00083             node.getLBracket().apply(this);
00084         }
00085         if(node.getLocation() != null)
00086         {
00087             node.getLocation().apply(this);
00088         }
00089         outALocationAssertion(node);
00090     }
00091     public void caseAPostAssertion(APostAssertion node)
00092     {
00093         inAPostAssertion(node);
00094         {
00095             Object temp[] = node.getComment().toArray();
00096             for(int i = temp.length - 1; i >= 0; i--)
00097             {
00098                 ((PComment) temp[i]).apply(this);
00099             }
00100         }
00101         if(node.getSemicolon() != null)
00102         {
00103             node.getSemicolon().apply(this);
00104         }
00105         if(node.getColon() != null)
00106         {
00107             node.getColon().apply(this);
00108         }
00109         if(node.getId() != null)
00110         {
00111             node.getId().apply(this);
00112         }
00113         if(node.getPost() != null)
00114         {
00115             node.getPost().apply(this);
00116         }
00117         outAPostAssertion(node);
00118     }
00119     public void caseAPreAssertion(APreAssertion node)
00120     {
00121         inAPreAssertion(node);
00122         {
00123             Object temp[] = node.getComment().toArray();
00124             for(int i = temp.length - 1; i >= 0; i--)
00125             {
00126                 ((PComment) temp[i]).apply(this);
00127             }
00128         }
00129         if(node.getSemicolon() != null)
00130         {
00131             node.getSemicolon().apply(this);
00132         }
00133         if(node.getColon() != null)
00134         {
00135             node.getColon().apply(this);
00136         }
00137         if(node.getId() != null)
00138         {
00139             node.getId().apply(this);
00140         }
00141         if(node.getPre() != null)
00142         {
00143             node.getPre().apply(this);
00144         }
00145         outAPreAssertion(node);
00146     }
00147     public void caseAQualifiedName(AQualifiedName node)
00148     {
00149         inAQualifiedName(node);
00150         if(node.getId() != null)
00151         {
00152             node.getId().apply(this);
00153         }
00154         if(node.getDot() != null)
00155         {
00156             node.getDot().apply(this);
00157         }
00158         if(node.getName() != null)
00159         {
00160             node.getName().apply(this);
00161         }
00162         outAQualifiedName(node);
00163     }
00164     public void caseASimpleName(ASimpleName node)
00165     {
00166         inASimpleName(node);
00167         if(node.getId() != null)
00168         {
00169             node.getId().apply(this);
00170         }
00171         outASimpleName(node);
00172     }
00173     public void caseAUnit(AUnit node)
00174     {
00175         inAUnit(node);
00176         {
00177             Object temp[] = node.getAssertion().toArray();
00178             for(int i = temp.length - 1; i >= 0; i--)
00179             {
00180                 ((PAssertion) temp[i]).apply(this);
00181             }
00182         }
00183         {
00184             Object temp[] = node.getComment().toArray();
00185             for(int i = temp.length - 1; i >= 0; i--)
00186             {
00187                 ((PComment) temp[i]).apply(this);
00188             }
00189         }
00190         if(node.getName() != null)
00191         {
00192             node.getName().apply(this);
00193         }
00194         outAUnit(node);
00195     }
00196     public void caseStart(Start node)
00197     {
00198         inStart(node);
00199         node.getEOF().apply(this);
00200         node.getPUnit().apply(this);
00201         outStart(node);
00202     }
00203     public void defaultIn(Node node)
00204     {
00205     }
00206     public void defaultOut(Node node)
00207     {
00208     }
00209     public void inAEndOfLineComment(AEndOfLineComment node)
00210     {
00211         defaultIn(node);
00212     }
00213     public void inALocationAssertion(ALocationAssertion node)
00214     {
00215         defaultIn(node);
00216     }
00217     public void inAPostAssertion(APostAssertion node)
00218     {
00219         defaultIn(node);
00220     }
00221     public void inAPreAssertion(APreAssertion node)
00222     {
00223         defaultIn(node);
00224     }
00225     public void inAQualifiedName(AQualifiedName node)
00226     {
00227         defaultIn(node);
00228     }
00229     public void inASimpleName(ASimpleName node)
00230     {
00231         defaultIn(node);
00232     }
00233     public void inAUnit(AUnit node)
00234     {
00235         defaultIn(node);
00236     }
00237     public void inStart(Start node)
00238     {
00239         defaultIn(node);
00240     }
00241     public void outAEndOfLineComment(AEndOfLineComment node)
00242     {
00243         defaultOut(node);
00244     }
00245     public void outALocationAssertion(ALocationAssertion node)
00246     {
00247         defaultOut(node);
00248     }
00249     public void outAPostAssertion(APostAssertion node)
00250     {
00251         defaultOut(node);
00252     }
00253     public void outAPreAssertion(APreAssertion node)
00254     {
00255         defaultOut(node);
00256     }
00257     public void outAQualifiedName(AQualifiedName node)
00258     {
00259         defaultOut(node);
00260     }
00261     public void outASimpleName(ASimpleName node)
00262     {
00263         defaultOut(node);
00264     }
00265     public void outAUnit(AUnit node)
00266     {
00267         defaultOut(node);
00268     }
00269     public void outStart(Start node)
00270     {
00271         defaultOut(node);
00272     }
00273 }

Generated at Thu Feb 7 06:54:23 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001