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

DepthFirstAdapter.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 java.util.*;
00039 import edu.ksu.cis.bandera.specification.assertion.node.*;
00040 
00041 public class DepthFirstAdapter extends AnalysisAdapter
00042 {
00043     public void caseAEndOfLineComment(AEndOfLineComment node)
00044     {
00045         inAEndOfLineComment(node);
00046         if(node.getEndOfLineComment() != null)
00047         {
00048             node.getEndOfLineComment().apply(this);
00049         }
00050         outAEndOfLineComment(node);
00051     }
00052     public void caseALocationAssertion(ALocationAssertion node)
00053     {
00054         inALocationAssertion(node);
00055         if(node.getLocation() != null)
00056         {
00057             node.getLocation().apply(this);
00058         }
00059         if(node.getLBracket() != null)
00060         {
00061             node.getLBracket().apply(this);
00062         }
00063         if(node.getLabel() != null)
00064         {
00065             node.getLabel().apply(this);
00066         }
00067         if(node.getRBracket() != null)
00068         {
00069             node.getRBracket().apply(this);
00070         }
00071         if(node.getId() != null)
00072         {
00073             node.getId().apply(this);
00074         }
00075         if(node.getColon() != null)
00076         {
00077             node.getColon().apply(this);
00078         }
00079         if(node.getSemicolon() != null)
00080         {
00081             node.getSemicolon().apply(this);
00082         }
00083         {
00084             Object temp[] = node.getComment().toArray();
00085             for(int i = 0; i < temp.length; i++)
00086             {
00087                 ((PComment) temp[i]).apply(this);
00088             }
00089         }
00090         outALocationAssertion(node);
00091     }
00092     public void caseAPostAssertion(APostAssertion node)
00093     {
00094         inAPostAssertion(node);
00095         if(node.getPost() != null)
00096         {
00097             node.getPost().apply(this);
00098         }
00099         if(node.getId() != null)
00100         {
00101             node.getId().apply(this);
00102         }
00103         if(node.getColon() != null)
00104         {
00105             node.getColon().apply(this);
00106         }
00107         if(node.getSemicolon() != null)
00108         {
00109             node.getSemicolon().apply(this);
00110         }
00111         {
00112             Object temp[] = node.getComment().toArray();
00113             for(int i = 0; i < temp.length; i++)
00114             {
00115                 ((PComment) temp[i]).apply(this);
00116             }
00117         }
00118         outAPostAssertion(node);
00119     }
00120     public void caseAPreAssertion(APreAssertion node)
00121     {
00122         inAPreAssertion(node);
00123         if(node.getPre() != null)
00124         {
00125             node.getPre().apply(this);
00126         }
00127         if(node.getId() != null)
00128         {
00129             node.getId().apply(this);
00130         }
00131         if(node.getColon() != null)
00132         {
00133             node.getColon().apply(this);
00134         }
00135         if(node.getSemicolon() != null)
00136         {
00137             node.getSemicolon().apply(this);
00138         }
00139         {
00140             Object temp[] = node.getComment().toArray();
00141             for(int i = 0; i < temp.length; i++)
00142             {
00143                 ((PComment) temp[i]).apply(this);
00144             }
00145         }
00146         outAPreAssertion(node);
00147     }
00148     public void caseAQualifiedName(AQualifiedName node)
00149     {
00150         inAQualifiedName(node);
00151         if(node.getName() != null)
00152         {
00153             node.getName().apply(this);
00154         }
00155         if(node.getDot() != null)
00156         {
00157             node.getDot().apply(this);
00158         }
00159         if(node.getId() != null)
00160         {
00161             node.getId().apply(this);
00162         }
00163         outAQualifiedName(node);
00164     }
00165     public void caseASimpleName(ASimpleName node)
00166     {
00167         inASimpleName(node);
00168         if(node.getId() != null)
00169         {
00170             node.getId().apply(this);
00171         }
00172         outASimpleName(node);
00173     }
00174     public void caseAUnit(AUnit node)
00175     {
00176         inAUnit(node);
00177         if(node.getName() != null)
00178         {
00179             node.getName().apply(this);
00180         }
00181         {
00182             Object temp[] = node.getComment().toArray();
00183             for(int i = 0; i < temp.length; i++)
00184             {
00185                 ((PComment) temp[i]).apply(this);
00186             }
00187         }
00188         {
00189             Object temp[] = node.getAssertion().toArray();
00190             for(int i = 0; i < temp.length; i++)
00191             {
00192                 ((PAssertion) temp[i]).apply(this);
00193             }
00194         }
00195         outAUnit(node);
00196     }
00197     public void caseStart(Start node)
00198     {
00199         inStart(node);
00200         node.getPUnit().apply(this);
00201         node.getEOF().apply(this);
00202         outStart(node);
00203     }
00204     public void defaultIn(Node node)
00205     {
00206     }
00207     public void defaultOut(Node node)
00208     {
00209     }
00210     public void inAEndOfLineComment(AEndOfLineComment node)
00211     {
00212         defaultIn(node);
00213     }
00214     public void inALocationAssertion(ALocationAssertion node)
00215     {
00216         defaultIn(node);
00217     }
00218     public void inAPostAssertion(APostAssertion node)
00219     {
00220         defaultIn(node);
00221     }
00222     public void inAPreAssertion(APreAssertion node)
00223     {
00224         defaultIn(node);
00225     }
00226     public void inAQualifiedName(AQualifiedName node)
00227     {
00228         defaultIn(node);
00229     }
00230     public void inASimpleName(ASimpleName node)
00231     {
00232         defaultIn(node);
00233     }
00234     public void inAUnit(AUnit node)
00235     {
00236         defaultIn(node);
00237     }
00238     public void inStart(Start node)
00239     {
00240         defaultIn(node);
00241     }
00242     public void outAEndOfLineComment(AEndOfLineComment node)
00243     {
00244         defaultOut(node);
00245     }
00246     public void outALocationAssertion(ALocationAssertion node)
00247     {
00248         defaultOut(node);
00249     }
00250     public void outAPostAssertion(APostAssertion node)
00251     {
00252         defaultOut(node);
00253     }
00254     public void outAPreAssertion(APreAssertion node)
00255     {
00256         defaultOut(node);
00257     }
00258     public void outAQualifiedName(AQualifiedName node)
00259     {
00260         defaultOut(node);
00261     }
00262     public void outASimpleName(ASimpleName node)
00263     {
00264         defaultOut(node);
00265     }
00266     public void outAUnit(AUnit node)
00267     {
00268         defaultOut(node);
00269     }
00270     public void outStart(Start node)
00271     {
00272         defaultOut(node);
00273     }
00274 }

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