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

DepthFirstAdapter.java

00001 package edu.ksu.cis.bandera.bui.session.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.bui.session.node.*;
00040 
00041 public class DepthFirstAdapter extends AnalysisAdapter
00042 {
00043     public void caseASession(ASession node)
00044     {
00045         inASession(node);
00046         if(node.getSession() != null)
00047         {
00048             node.getSession().apply(this);
00049         }
00050         if(node.getId() != null)
00051         {
00052             node.getId().apply(this);
00053         }
00054         if(node.getLBrace() != null)
00055         {
00056             node.getLBrace().apply(this);
00057         }
00058         {
00059             Object temp[] = node.getResource().toArray();
00060             for(int i = 0; i < temp.length; i++)
00061             {
00062                 ((PResource) temp[i]).apply(this);
00063             }
00064         }
00065         if(node.getRBrace() != null)
00066         {
00067             node.getRBrace().apply(this);
00068         }
00069         outASession(node);
00070     }
00071     public void caseAStringResource(AStringResource node)
00072     {
00073         inAStringResource(node);
00074         if(node.getId() != null)
00075         {
00076             node.getId().apply(this);
00077         }
00078         if(node.getEqual() != null)
00079         {
00080             node.getEqual().apply(this);
00081         }
00082         if(node.getStrings() != null)
00083         {
00084             node.getStrings().apply(this);
00085         }
00086         outAStringResource(node);
00087     }
00088     public void caseAStringsStrings(AStringsStrings node)
00089     {
00090         inAStringsStrings(node);
00091         if(node.getStrings() != null)
00092         {
00093             node.getStrings().apply(this);
00094         }
00095         if(node.getPlus() != null)
00096         {
00097             node.getPlus().apply(this);
00098         }
00099         if(node.getStringLiteral() != null)
00100         {
00101             node.getStringLiteral().apply(this);
00102         }
00103         outAStringsStrings(node);
00104     }
00105     public void caseAStringStrings(AStringStrings node)
00106     {
00107         inAStringStrings(node);
00108         if(node.getStringLiteral() != null)
00109         {
00110             node.getStringLiteral().apply(this);
00111         }
00112         outAStringStrings(node);
00113     }
00114     public void caseAUnit(AUnit node)
00115     {
00116         inAUnit(node);
00117         {
00118             Object temp[] = node.getSession().toArray();
00119             for(int i = 0; i < temp.length; i++)
00120             {
00121                 ((PSession) temp[i]).apply(this);
00122             }
00123         }
00124         outAUnit(node);
00125     }
00126     public void caseStart(Start node)
00127     {
00128         inStart(node);
00129         node.getPUnit().apply(this);
00130         node.getEOF().apply(this);
00131         outStart(node);
00132     }
00133     public void defaultIn(Node node)
00134     {
00135     }
00136     public void defaultOut(Node node)
00137     {
00138     }
00139     public void inASession(ASession node)
00140     {
00141         defaultIn(node);
00142     }
00143     public void inAStringResource(AStringResource node)
00144     {
00145         defaultIn(node);
00146     }
00147     public void inAStringsStrings(AStringsStrings node)
00148     {
00149         defaultIn(node);
00150     }
00151     public void inAStringStrings(AStringStrings node)
00152     {
00153         defaultIn(node);
00154     }
00155     public void inAUnit(AUnit node)
00156     {
00157         defaultIn(node);
00158     }
00159     public void inStart(Start node)
00160     {
00161         defaultIn(node);
00162     }
00163     public void outASession(ASession node)
00164     {
00165         defaultOut(node);
00166     }
00167     public void outAStringResource(AStringResource node)
00168     {
00169         defaultOut(node);
00170     }
00171     public void outAStringsStrings(AStringsStrings node)
00172     {
00173         defaultOut(node);
00174     }
00175     public void outAStringStrings(AStringStrings node)
00176     {
00177         defaultOut(node);
00178     }
00179     public void outAUnit(AUnit node)
00180     {
00181         defaultOut(node);
00182     }
00183     public void outStart(Start node)
00184     {
00185         defaultOut(node);
00186     }
00187 }

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