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

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

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