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

ReversedDepthFirstAdapter.java

00001 package edu.ksu.cis.bandera.specification.pattern.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.pattern.node.*;
00039 
00040 public class ReversedDepthFirstAdapter extends AnalysisAdapter
00041 {
00042     public void caseAIdIds(AIdIds node)
00043     {
00044         inAIdIds(node);
00045         if(node.getId() != null)
00046         {
00047             node.getId().apply(this);
00048         }
00049         outAIdIds(node);
00050     }
00051     public void caseAIdsIds(AIdsIds node)
00052     {
00053         inAIdsIds(node);
00054         if(node.getId() != null)
00055         {
00056             node.getId().apply(this);
00057         }
00058         if(node.getComma() != null)
00059         {
00060             node.getComma().apply(this);
00061         }
00062         if(node.getIds() != null)
00063         {
00064             node.getIds().apply(this);
00065         }
00066         outAIdsIds(node);
00067     }
00068     public void caseAParamResource(AParamResource node)
00069     {
00070         inAParamResource(node);
00071         if(node.getRBrace() != null)
00072         {
00073             node.getRBrace().apply(this);
00074         }
00075         if(node.getIds() != null)
00076         {
00077             node.getIds().apply(this);
00078         }
00079         if(node.getLBrace() != null)
00080         {
00081             node.getLBrace().apply(this);
00082         }
00083         if(node.getEqual() != null)
00084         {
00085             node.getEqual().apply(this);
00086         }
00087         if(node.getId() != null)
00088         {
00089             node.getId().apply(this);
00090         }
00091         outAParamResource(node);
00092     }
00093     public void caseAPattern(APattern node)
00094     {
00095         inAPattern(node);
00096         if(node.getRBrace() != null)
00097         {
00098             node.getRBrace().apply(this);
00099         }
00100         {
00101             Object temp[] = node.getResource().toArray();
00102             for(int i = temp.length - 1; i >= 0; i--)
00103             {
00104                 ((PResource) temp[i]).apply(this);
00105             }
00106         }
00107         if(node.getLBrace() != null)
00108         {
00109             node.getLBrace().apply(this);
00110         }
00111         if(node.getPattern() != null)
00112         {
00113             node.getPattern().apply(this);
00114         }
00115         outAPattern(node);
00116     }
00117     public void caseAStringResource(AStringResource node)
00118     {
00119         inAStringResource(node);
00120         if(node.getStrings() != null)
00121         {
00122             node.getStrings().apply(this);
00123         }
00124         if(node.getEqual() != null)
00125         {
00126             node.getEqual().apply(this);
00127         }
00128         if(node.getId() != null)
00129         {
00130             node.getId().apply(this);
00131         }
00132         outAStringResource(node);
00133     }
00134     public void caseAStringsStrings(AStringsStrings node)
00135     {
00136         inAStringsStrings(node);
00137         if(node.getStringLiteral() != null)
00138         {
00139             node.getStringLiteral().apply(this);
00140         }
00141         if(node.getPlus() != null)
00142         {
00143             node.getPlus().apply(this);
00144         }
00145         if(node.getStrings() != null)
00146         {
00147             node.getStrings().apply(this);
00148         }
00149         outAStringsStrings(node);
00150     }
00151     public void caseAStringStrings(AStringStrings node)
00152     {
00153         inAStringStrings(node);
00154         if(node.getStringLiteral() != null)
00155         {
00156             node.getStringLiteral().apply(this);
00157         }
00158         outAStringStrings(node);
00159     }
00160     public void caseAUnit(AUnit node)
00161     {
00162         inAUnit(node);
00163         {
00164             Object temp[] = node.getPattern().toArray();
00165             for(int i = temp.length - 1; i >= 0; i--)
00166             {
00167                 ((PPattern) temp[i]).apply(this);
00168             }
00169         }
00170         outAUnit(node);
00171     }
00172     public void caseStart(Start node)
00173     {
00174         inStart(node);
00175         node.getEOF().apply(this);
00176         node.getPUnit().apply(this);
00177         outStart(node);
00178     }
00179     public void defaultIn(Node node)
00180     {
00181     }
00182     public void defaultOut(Node node)
00183     {
00184     }
00185     public void inAIdIds(AIdIds node)
00186     {
00187         defaultIn(node);
00188     }
00189     public void inAIdsIds(AIdsIds node)
00190     {
00191         defaultIn(node);
00192     }
00193     public void inAParamResource(AParamResource node)
00194     {
00195         defaultIn(node);
00196     }
00197     public void inAPattern(APattern node)
00198     {
00199         defaultIn(node);
00200     }
00201     public void inAStringResource(AStringResource node)
00202     {
00203         defaultIn(node);
00204     }
00205     public void inAStringsStrings(AStringsStrings node)
00206     {
00207         defaultIn(node);
00208     }
00209     public void inAStringStrings(AStringStrings node)
00210     {
00211         defaultIn(node);
00212     }
00213     public void inAUnit(AUnit node)
00214     {
00215         defaultIn(node);
00216     }
00217     public void inStart(Start node)
00218     {
00219         defaultIn(node);
00220     }
00221     public void outAIdIds(AIdIds node)
00222     {
00223         defaultOut(node);
00224     }
00225     public void outAIdsIds(AIdsIds node)
00226     {
00227         defaultOut(node);
00228     }
00229     public void outAParamResource(AParamResource node)
00230     {
00231         defaultOut(node);
00232     }
00233     public void outAPattern(APattern node)
00234     {
00235         defaultOut(node);
00236     }
00237     public void outAStringResource(AStringResource node)
00238     {
00239         defaultOut(node);
00240     }
00241     public void outAStringsStrings(AStringsStrings node)
00242     {
00243         defaultOut(node);
00244     }
00245     public void outAStringStrings(AStringStrings node)
00246     {
00247         defaultOut(node);
00248     }
00249     public void outAUnit(AUnit node)
00250     {
00251         defaultOut(node);
00252     }
00253     public void outStart(Start node)
00254     {
00255         defaultOut(node);
00256     }
00257 }

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