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

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

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