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

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

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