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

DepthFirstAdapter.java

00001 package edu.ksu.cis.bandera.abstraction.options.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.abstraction.options.node.*;
00040 
00041 public class DepthFirstAdapter extends AnalysisAdapter
00042 {
00043     public void caseAClassOption(AClassOption node)
00044     {
00045         inAClassOption(node);
00046         if(node.getCls() != null)
00047         {
00048             node.getCls().apply(this);
00049         }
00050         if(node.getName() != null)
00051         {
00052             node.getName().apply(this);
00053         }
00054         if(node.getLBrace() != null)
00055         {
00056             node.getLBrace().apply(this);
00057         }
00058         {
00059             Object temp[] = node.getFieldOption().toArray();
00060             for(int i = 0; i < temp.length; i++)
00061             {
00062                 ((PFieldOption) temp[i]).apply(this);
00063             }
00064         }
00065         {
00066             Object temp[] = node.getMethodOption().toArray();
00067             for(int i = 0; i < temp.length; i++)
00068             {
00069                 ((PMethodOption) temp[i]).apply(this);
00070             }
00071         }
00072         if(node.getRBrace() != null)
00073         {
00074             node.getRBrace().apply(this);
00075         }
00076         outAClassOption(node);
00077     }
00078     public void caseAFieldOption(AFieldOption node)
00079     {
00080         inAFieldOption(node);
00081         if(node.getId() != null)
00082         {
00083             node.getId().apply(this);
00084         }
00085         if(node.getName() != null)
00086         {
00087             node.getName().apply(this);
00088         }
00089         if(node.getSemicolon() != null)
00090         {
00091             node.getSemicolon().apply(this);
00092         }
00093         outAFieldOption(node);
00094     }
00095     public void caseALocalOption(ALocalOption node)
00096     {
00097         inALocalOption(node);
00098         if(node.getId() != null)
00099         {
00100             node.getId().apply(this);
00101         }
00102         if(node.getName() != null)
00103         {
00104             node.getName().apply(this);
00105         }
00106         if(node.getSemicolon() != null)
00107         {
00108             node.getSemicolon().apply(this);
00109         }
00110         outALocalOption(node);
00111     }
00112     public void caseAMethodOption(AMethodOption node)
00113     {
00114         inAMethodOption(node);
00115         if(node.getId() != null)
00116         {
00117             node.getId().apply(this);
00118         }
00119         if(node.getLParen() != null)
00120         {
00121             node.getLParen().apply(this);
00122         }
00123         if(node.getParams() != null)
00124         {
00125             node.getParams().apply(this);
00126         }
00127         if(node.getRParen() != null)
00128         {
00129             node.getRParen().apply(this);
00130         }
00131         if(node.getLBrace() != null)
00132         {
00133             node.getLBrace().apply(this);
00134         }
00135         {
00136             Object temp[] = node.getLocalOption().toArray();
00137             for(int i = 0; i < temp.length; i++)
00138             {
00139                 ((PLocalOption) temp[i]).apply(this);
00140             }
00141         }
00142         if(node.getRBrace() != null)
00143         {
00144             node.getRBrace().apply(this);
00145         }
00146         outAMethodOption(node);
00147     }
00148     public void caseAParamParams(AParamParams node)
00149     {
00150         inAParamParams(node);
00151         if(node.getName() != null)
00152         {
00153             node.getName().apply(this);
00154         }
00155         {
00156             Object temp[] = node.getDim().toArray();
00157             for(int i = 0; i < temp.length; i++)
00158             {
00159                 ((TDim) temp[i]).apply(this);
00160             }
00161         }
00162         outAParamParams(node);
00163     }
00164     public void caseAParamsParams(AParamsParams node)
00165     {
00166         inAParamsParams(node);
00167         if(node.getParams() != null)
00168         {
00169             node.getParams().apply(this);
00170         }
00171         if(node.getComma() != null)
00172         {
00173             node.getComma().apply(this);
00174         }
00175         if(node.getName() != null)
00176         {
00177             node.getName().apply(this);
00178         }
00179         {
00180             Object temp[] = node.getDim().toArray();
00181             for(int i = 0; i < temp.length; i++)
00182             {
00183                 ((TDim) temp[i]).apply(this);
00184             }
00185         }
00186         outAParamsParams(node);
00187     }
00188     public void caseAQualifiedName(AQualifiedName node)
00189     {
00190         inAQualifiedName(node);
00191         if(node.getName() != null)
00192         {
00193             node.getName().apply(this);
00194         }
00195         if(node.getDot() != null)
00196         {
00197             node.getDot().apply(this);
00198         }
00199         if(node.getId() != null)
00200         {
00201             node.getId().apply(this);
00202         }
00203         outAQualifiedName(node);
00204     }
00205     public void caseASimpleName(ASimpleName node)
00206     {
00207         inASimpleName(node);
00208         if(node.getId() != null)
00209         {
00210             node.getId().apply(this);
00211         }
00212         outASimpleName(node);
00213     }
00214     public void caseAUnit(AUnit node)
00215     {
00216         inAUnit(node);
00217         {
00218             Object temp[] = node.getClassOption().toArray();
00219             for(int i = 0; i < temp.length; i++)
00220             {
00221                 ((PClassOption) temp[i]).apply(this);
00222             }
00223         }
00224         outAUnit(node);
00225     }
00226     public void caseStart(Start node)
00227     {
00228         inStart(node);
00229         node.getPUnit().apply(this);
00230         node.getEOF().apply(this);
00231         outStart(node);
00232     }
00233     public void defaultIn(Node node)
00234     {
00235     }
00236     public void defaultOut(Node node)
00237     {
00238     }
00239     public void inAClassOption(AClassOption node)
00240     {
00241         defaultIn(node);
00242     }
00243     public void inAFieldOption(AFieldOption node)
00244     {
00245         defaultIn(node);
00246     }
00247     public void inALocalOption(ALocalOption node)
00248     {
00249         defaultIn(node);
00250     }
00251     public void inAMethodOption(AMethodOption node)
00252     {
00253         defaultIn(node);
00254     }
00255     public void inAParamParams(AParamParams node)
00256     {
00257         defaultIn(node);
00258     }
00259     public void inAParamsParams(AParamsParams node)
00260     {
00261         defaultIn(node);
00262     }
00263     public void inAQualifiedName(AQualifiedName node)
00264     {
00265         defaultIn(node);
00266     }
00267     public void inASimpleName(ASimpleName node)
00268     {
00269         defaultIn(node);
00270     }
00271     public void inAUnit(AUnit node)
00272     {
00273         defaultIn(node);
00274     }
00275     public void inStart(Start node)
00276     {
00277         defaultIn(node);
00278     }
00279     public void outAClassOption(AClassOption node)
00280     {
00281         defaultOut(node);
00282     }
00283     public void outAFieldOption(AFieldOption node)
00284     {
00285         defaultOut(node);
00286     }
00287     public void outALocalOption(ALocalOption node)
00288     {
00289         defaultOut(node);
00290     }
00291     public void outAMethodOption(AMethodOption node)
00292     {
00293         defaultOut(node);
00294     }
00295     public void outAParamParams(AParamParams node)
00296     {
00297         defaultOut(node);
00298     }
00299     public void outAParamsParams(AParamsParams node)
00300     {
00301         defaultOut(node);
00302     }
00303     public void outAQualifiedName(AQualifiedName node)
00304     {
00305         defaultOut(node);
00306     }
00307     public void outASimpleName(ASimpleName node)
00308     {
00309         defaultOut(node);
00310     }
00311     public void outAUnit(AUnit node)
00312     {
00313         defaultOut(node);
00314     }
00315     public void outStart(Start node)
00316     {
00317         defaultOut(node);
00318     }
00319 }

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